mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-16 17:25:11 +00:00
Remove unused argument
This commit is contained in:
parent
78ff651326
commit
476406f43b
@ -83,7 +83,7 @@ impl View {
|
|||||||
|
|
||||||
let other_options_scan = || {
|
let other_options_scan = || {
|
||||||
let term_colours = try!(TerminalColours::deduce(matches));
|
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() {
|
if let Some(&width) = term_width.as_ref() {
|
||||||
let colours = match term_colours {
|
let colours = match term_colours {
|
||||||
@ -200,7 +200,7 @@ impl TerminalWidth {
|
|||||||
/// Determine a requested terminal width from the command-line arguments.
|
/// Determine a requested terminal width from the command-line arguments.
|
||||||
///
|
///
|
||||||
/// Returns an error if a requested width doesn’t parse to an integer.
|
/// 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()) {
|
if let Some(columns) = var_os("COLUMNS").and_then(|s| s.into_string().ok()) {
|
||||||
match columns.parse() {
|
match columns.parse() {
|
||||||
Ok(width) => Ok(TerminalWidth::Set(width)),
|
Ok(width) => Ok(TerminalWidth::Set(width)),
|
||||||
|
Loading…
Reference in New Issue
Block a user