From f90da598c50c248541cf42b2c8a76edae233fc0d Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Thu, 16 Jul 2020 21:42:07 +0600 Subject: [PATCH] Fix one Clippy's warning --- tests/command.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/command.rs b/tests/command.rs index 47b3555f..fd474c2a 100644 --- a/tests/command.rs +++ b/tests/command.rs @@ -135,11 +135,13 @@ fn parse_custom_parser() { )) } }; - left.parse::().map(|res| (res, right.to_string())).map_err(|_| { - ParseError::Custom( - "First argument must be a integer!".to_owned().into(), - ) - }) + left.parse::().map(|res| (res, (*right).to_string())).map_err( + |_| { + ParseError::Custom( + "First argument must be a integer!".to_owned().into(), + ) + }, + ) } #[command(rename = "lowercase")]