diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2019-04-11 09:54:26 +0200 |
---|---|---|
committer | Christian Duerr <chrisduerr@users.noreply.github.com> | 2019-04-11 07:54:26 +0000 |
commit | 3478676f8f7ec6817b1e17d09926fc35a507977a (patch) | |
tree | c1b6d403446a312b635a3f1b75e884c3bc646a60 /src/cli.rs | |
parent | d406627acb68ff861803c09089462027eb69b5e5 (diff) | |
download | r-alacritty-3478676f8f7ec6817b1e17d09926fc35a507977a.tar.gz r-alacritty-3478676f8f7ec6817b1e17d09926fc35a507977a.tar.bz2 r-alacritty-3478676f8f7ec6817b1e17d09926fc35a507977a.zip |
Remove redundant closures and imports
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -182,8 +182,8 @@ impl Options { } if let Some(mut position) = matches.values_of("position") { - let x = position.next().map(|x| x.parse::<i32>()); - let y = position.next().map(|y| y.parse::<i32>()); + let x = position.next().map(str::parse); + let y = position.next().map(str::parse); if let (Some(Ok(x)), Some(Ok(y))) = (x, y) { options.position = Some(Delta { x, y }); } |