From d6351a7cf351bf6841a5c0d8a951a1fb7555e3ca Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Tue, 4 Jan 2022 07:22:40 +0000 Subject: [PATCH] style: remove 'from_string' call from 'format' args --- tests/builder/double_require.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/builder/double_require.rs b/tests/builder/double_require.rs index 166c0a7f..71a99947 100644 --- a/tests/builder/double_require.rs +++ b/tests/builder/double_require.rs @@ -68,7 +68,7 @@ fn help_text() { assert!(res.is_err()); let err = res.unwrap_err(); assert_eq!(err.kind, ErrorKind::DisplayHelp); - println!("{}", err.to_string()); + println!("{}", err); assert_eq!(err.to_string(), HELP); }