From bbea87db91cb4f3a7b284296f7853ce16fb6b54d Mon Sep 17 00:00:00 2001 From: Victor Song Date: Fri, 30 Sep 2022 23:34:05 -0400 Subject: [PATCH] Avoid redundant closures when calling methods --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7dcff10..db09619 100644 --- a/src/main.rs +++ b/src/main.rs @@ -62,7 +62,7 @@ fn main() { } let args: Vec<_> = env::args_os().skip(1).collect(); - match Options::parse(args.iter().map(|e| e.as_ref()), &LiveVars) { + match Options::parse(args.iter().map(std::convert::AsRef::as_ref), &LiveVars) { OptionsResult::Ok(options, mut input_paths) => { // List the current directory by default.