diff options
author | Benjamin Sago <ogham@bsago.me> | 2016-04-17 21:01:30 +0100 |
---|---|---|
committer | Benjamin Sago <ogham@bsago.me> | 2016-04-17 21:01:30 +0100 |
commit | 476406f43ba2f45c8c064eae0802bc77ce81d816 (patch) | |
tree | 17b38ec8ef9e2b8dfc6fb8325d609eef23166708 /src/options/view.rs | |
parent | 78ff651326350cb08b4708630174e4469411e4fb (diff) |
Remove unused argument
Diffstat (limited to 'src/options/view.rs')
-rw-r--r-- | src/options/view.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/options/view.rs b/src/options/view.rs index e4f2721..b723a9e 100644 --- a/src/options/view.rs +++ b/src/options/view.rs @@ -83,7 +83,7 @@ impl View { let other_options_scan = || { let term_colours = try!(TerminalColours::deduce(matches)); - let term_width = try!(TerminalWidth::deduce(matches)); + let term_width = try!(TerminalWidth::deduce()); if let Some(&width) = term_width.as_ref() { let colours = match term_colours { @@ -200,7 +200,7 @@ impl TerminalWidth { /// Determine a requested terminal width from the command-line arguments. /// /// Returns an error if a requested width doesn’t parse to an integer. - fn deduce(_: &getopts::Matches) -> Result<TerminalWidth, Misfire> { + fn deduce() -> Result<TerminalWidth, Misfire> { if let Some(columns) = var_os("COLUMNS").and_then(|s| s.into_string().ok()) { match columns.parse() { Ok(width) => Ok(TerminalWidth::Set(width)), |