Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: clippy hint. #65

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading