Skip to content

Commit 61596a6

Browse files
committed
fix useless break line
1 parent 42a64dd commit 61596a6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: src/onefetch/cli.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ impl Cli {
147147
.long("color-resolution")
148148
.value_name("VALUE")
149149
.takes_value(true)
150-
.requires("image-backend")
151150
.max_values(1)
152151
.possible_values(&["16", "32", "64", "128", "256"])
153152
.default_value("16")
@@ -227,7 +226,7 @@ impl Cli {
227226
None
228227
};
229228

230-
let image_colors: usize = matches.value_of("image-colors").unwrap().parse().unwrap();
229+
let image_colors: usize = matches.value_of("color-resolution").unwrap().parse().unwrap();
231230

232231
let path = String::from(matches.value_of("input").unwrap());
233232

Diff for: src/onefetch/cli_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ impl<W: Write> Printer<W> {
6565
}
6666
}
6767

68-
writeln!(self.writer, "{}", buf)?;
68+
write!(self.writer, "{}", buf)?;
6969

7070
Ok(())
7171
}

0 commit comments

Comments
 (0)