@@ -88,12 +88,12 @@ impl<'a> From<io::Error> for CliError<'a> {
8888impl fmt:: Display for CliError < ' _ > {
8989 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
9090 match * self {
91- CliError :: ArgUnrecognized ( ref s) => write ! ( f, "Found argument '{}'" , s ) ,
91+ CliError :: ArgUnrecognized ( ref s) => write ! ( f, "Found argument '{s }'" ) ,
9292 CliError :: ArgWidthNaN ( ref w) => {
93- write ! ( f, "--width: must be a positive integer, was: '{}'" , w )
93+ write ! ( f, "--width: must be a positive integer, was: '{w }'" )
9494 }
9595 CliError :: ArgWidthOutOfBounds ( ref w) => {
96- write ! ( f, "--width: must be greater than 0, was: '{}'" , w )
96+ write ! ( f, "--width: must be greater than 0, was: '{w }'" )
9797 }
9898 CliError :: EarlyExit ( ref s) => s. fmt ( f) ,
9999 CliError :: Io ( ref err) => err. fmt ( f) ,
@@ -119,7 +119,7 @@ impl Termination for CliError<'_> {
119119 fn report ( self ) -> ExitCode {
120120 match self {
121121 CliError :: EarlyExit ( s) => {
122- println ! ( "{}" , s ) ;
122+ println ! ( "{s}" ) ;
123123 ExitCode :: SUCCESS
124124 }
125125 CliError :: Io ( ref e) if e. kind ( ) == io:: ErrorKind :: BrokenPipe => {
@@ -128,7 +128,7 @@ impl Termination for CliError<'_> {
128128 ExitCode :: from ( ret)
129129 }
130130 _ => {
131- eprintln ! ( "fatal: {}" , self ) ;
131+ eprintln ! ( "fatal: {self}" ) ;
132132 ExitCode :: FAILURE
133133 }
134134 }
0 commit comments