Skip to content

Commit

Permalink
cli-output: Genericize writeln_name_value()
Browse files Browse the repository at this point in the history
  • Loading branch information
t-nelson committed Jan 21, 2021
1 parent e4da676 commit 2820d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli-output/src/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn println_name_value(name: &str, value: &str) {
println!("{} {}", style(name).bold(), styled_value);
}

pub fn writeln_name_value(f: &mut fmt::Formatter, name: &str, value: &str) -> fmt::Result {
pub fn writeln_name_value(f: &mut dyn fmt::Write, name: &str, value: &str) -> fmt::Result {
let styled_value = if value.is_empty() {
style("(not set)").italic()
} else {
Expand Down

0 comments on commit 2820d0a

Please sign in to comment.