Skip to content

Commit

Permalink
Address clippy lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Sep 18, 2023
1 parent a55d458 commit 0012edc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crate/params/src/value_resolution_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl fmt::Display for ValueResolutionCtx {

let field_name = field_name_and_type.field_name();
let type_name = field_name_and_type.type_name();
write!(f, "{field_name}: {type_name} {{\n")
writeln!(f, "{field_name}: {type_name} {{")
})?;

// Don't add opening `{` for the actual field.
Expand All @@ -97,10 +97,10 @@ impl fmt::Display for ValueResolutionCtx {
.try_for_each(|indentation| {
let indentation = indentation + 1;
(0..indentation).try_for_each(|_| write!(f, " "))?;
write!(f, "}},\n")?;
writeln!(f, "}},")?;

(0..indentation).try_for_each(|_| write!(f, " "))?;
write!(f, "..\n")
writeln!(f, "..")
})?;

write!(f, "}}")
Expand Down

0 comments on commit 0012edc

Please sign in to comment.