Skip to content

Commit

Permalink
Merge pull request #65 from yassun7010/fix_clippy
Browse files Browse the repository at this point in the history
fix: clippy hint.
  • Loading branch information
yassun7010 authored May 15, 2024
2 parents 67b41da + 4b2cd1a commit e5eda44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions serde_valid/src/features/toml/to_toml_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ where
W: std::io::Write,
{
let mut writer = writer;
match writer.write(&self.to_toml_string()?.into_bytes()) {
match writer.write_all(&self.to_toml_string()?.into_bytes()) {
Ok(_) => Ok(()),
Err(err) => Err(serde_toml::ser::Error::custom(err.to_string())),
}
Expand All @@ -66,7 +66,7 @@ where
W: std::io::Write,
{
let mut writer = writer;
match writer.write(&self.to_toml_string_pretty()?.into_bytes()) {
match writer.write_all(&self.to_toml_string_pretty()?.into_bytes()) {
Ok(_) => Ok(()),
Err(err) => Err(serde_toml::ser::Error::custom(err.to_string())),
}
Expand All @@ -79,7 +79,7 @@ impl ToTomlWriter for serde_toml::Value {
W: std::io::Write,
{
let mut writer = writer;
match writer.write(&self.to_toml_string()?.into_bytes()) {
match writer.write_all(&self.to_toml_string()?.into_bytes()) {
Ok(_) => Ok(()),
Err(err) => Err(serde_toml::ser::Error::custom(err.to_string())),
}
Expand All @@ -90,7 +90,7 @@ impl ToTomlWriter for serde_toml::Value {
W: std::io::Write,
{
let mut writer = writer;
match writer.write(&self.to_toml_string_pretty()?.into_bytes()) {
match writer.write_all(&self.to_toml_string_pretty()?.into_bytes()) {
Ok(_) => Ok(()),
Err(err) => Err(serde_toml::ser::Error::custom(err.to_string())),
}
Expand Down

0 comments on commit e5eda44

Please sign in to comment.