@@ -35,7 +35,7 @@ pub struct Params {
3535
3636#[ inline]
3737fn usage_string ( executable : & str ) -> String {
38- format ! ( "Usage: {} <from> <to>" , executable )
38+ format ! ( "Usage: {executable } <from> <to>" )
3939}
4040
4141#[ cfg( not( target_os = "windows" ) ) ]
@@ -75,8 +75,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
7575 Err ( e) if * e. kind ( ) == std:: num:: IntErrorKind :: PosOverflow => usize:: MAX ,
7676 Err ( _) => {
7777 return Err ( format ! (
78- "{}: invalid --ignore-initial value '{}'" ,
79- executable_str, skip_desc
78+ "{executable_str}: invalid --ignore-initial value '{skip_desc}'"
8079 ) )
8180 }
8281 } ;
@@ -103,8 +102,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
103102 "Y" => usize:: MAX , // 1_208_925_819_614_629_174_706_176,
104103 _ => {
105104 return Err ( format ! (
106- "{}: invalid --ignore-initial value '{}'" ,
107- executable_str, skip_desc
105+ "{executable_str}: invalid --ignore-initial value '{skip_desc}'"
108106 ) ) ;
109107 }
110108 } ;
@@ -170,8 +168,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
170168 Err ( e) if * e. kind ( ) == std:: num:: IntErrorKind :: PosOverflow => usize:: MAX ,
171169 Err ( _) => {
172170 return Err ( format ! (
173- "{}: invalid --bytes value '{}'" ,
174- executable_str, max_bytes
171+ "{executable_str}: invalid --bytes value '{max_bytes}'"
175172 ) )
176173 }
177174 } ;
@@ -210,7 +207,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
210207 std:: process:: exit ( 0 ) ;
211208 }
212209 if param_str. starts_with ( '-' ) {
213- return Err ( format ! ( "Unknown option: {:?}" , param ) ) ;
210+ return Err ( format ! ( "Unknown option: {param :?}" ) ) ;
214211 }
215212 if from. is_none ( ) {
216213 from = Some ( param) ;
@@ -236,8 +233,7 @@ pub fn parse_params<I: Iterator<Item = OsString>>(mut opts: Peekable<I>) -> Resu
236233
237234 if params. quiet && params. verbose {
238235 return Err ( format ! (
239- "{}: options -l and -s are incompatible" ,
240- executable_str
236+ "{executable_str}: options -l and -s are incompatible"
241237 ) ) ;
242238 }
243239
0 commit comments