Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 3, 2025
1 parent 7e5a40b commit 0f0ddbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn fmt_vertical_list_with_bullets(f: &mut fmt::Formatter<'_>, xs: &[String]) ->
let mut xs = xs.to_owned();
let last_element = xs.pop().unwrap();
for elem in xs {
write!(f, "* {}", elem)?;
writeln!(f, "* {}", elem)?;
}
write!(f, "* {}", last_element)?;
Ok(())
Expand All @@ -90,7 +90,7 @@ fn fmt_vertical_list_without_bullets(f: &mut fmt::Formatter<'_>, xs: &[String])
let mut xs = xs.to_owned();
let last_element = xs.pop().unwrap();
for elem in xs {
write!(f, "{}", elem)?;
writeln!(f, "{}", elem)?;
}
write!(f, "{}", last_element)?;
Ok(())
Expand Down Expand Up @@ -124,7 +124,7 @@ where
fn display_arg_table(xs: &XArguments) -> String {
let mut s = String::new();
for (k, v) in xs.0.iter() {
let line = format!("{}: {}", k, v);
let line = format!("{}: {}\n", k, v);
s += line.as_str()
}

Expand Down

0 comments on commit 0f0ddbb

Please sign in to comment.