aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
authorAaron Hill <aa1ronham@gmail.com>2017-09-27 20:29:44 -0400
committerJoe Wilm <jwilm@users.noreply.github.com>2017-09-27 17:29:44 -0700
commit5f7885749c4d7e48869b1fc0be4d430601cdbbfa (patch)
tree77916f2d24f71c846700139bbeaacec1f8699928 /src/cli.rs
parenteb231b3e70b87875df4bdd1974d5e94704024d70 (diff)
downloadalacritty-5f7885749c4d7e48869b1fc0be4d430601cdbbfa.tar.gz
alacritty-5f7885749c4d7e48869b1fc0be4d430601cdbbfa.zip
Use clippy = "*", update, and fix some warnings (#796)
Because there are so many clippy warnings in the current codebase, this commit removes '#![cfg_attr(feature = "clippy", deny(clippy))]', to make it easier to fix warnings incrementally.
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cli.rs b/src/cli.rs
index f6013f51..23f80202 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -123,8 +123,8 @@ impl Options {
}
if let Some(mut dimensions) = matches.values_of("dimensions") {
- let width = dimensions.next().map(|w| w.parse().map(|w| Column(w)));
- let height = dimensions.next().map(|h| h.parse().map(|h| Line(h)));
+ let width = dimensions.next().map(|w| w.parse().map(Column));
+ let height = dimensions.next().map(|h| h.parse().map(Line));
if let (Some(Ok(width)), Some(Ok(height))) = (width, height) {
options.dimensions = Some(Dimensions::new(width, height));
}