Skip to content

Commit

Permalink
fix useless break line
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Oct 23, 2020
1 parent 42a64dd commit 61596a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/onefetch/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ impl Cli {
.long("color-resolution")
.value_name("VALUE")
.takes_value(true)
.requires("image-backend")
.max_values(1)
.possible_values(&["16", "32", "64", "128", "256"])
.default_value("16")
Expand Down Expand Up @@ -227,7 +226,7 @@ impl Cli {
None
};

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/onefetch/cli_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl<W: Write> Printer<W> {
}
}

writeln!(self.writer, "{}", buf)?;
write!(self.writer, "{}", buf)?;

Ok(())
}
Expand Down

0 comments on commit 61596a6

Please sign in to comment.