Skip to content

Commit

Permalink
fix: clippy hint.
Browse files Browse the repository at this point in the history
  • Loading branch information
yassun7010 committed May 15, 2024
1 parent 67b41da commit 4b2cd1a
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 4b2cd1a

Please sign in to comment.