@@ -1359,7 +1359,7 @@ impl Config {
13591359 let err = Error :: new (
13601360 ErrorKind :: Malformed ,
13611361 "`protocol` invalid" ,
1362- Some ( format ! ( "unrecognized protocol {}" , p ) ) ,
1362+ Some ( format ! ( "unrecognized protocol {p}" ) ) ,
13631363 ) ;
13641364 return Err ( err) ;
13651365 }
@@ -1390,7 +1390,7 @@ impl Config {
13901390 let err = Error :: new (
13911391 ErrorKind :: Malformed ,
13921392 "`protocol` invalid" ,
1393- Some ( format ! ( "unrecognized protocol {}" , p ) ) ,
1393+ Some ( format ! ( "unrecognized protocol {p}" ) ) ,
13941394 ) ;
13951395 return Err ( err) ;
13961396 }
@@ -1549,7 +1549,7 @@ impl Config {
15491549 let err = Error :: new (
15501550 ErrorKind :: Invalid ,
15511551 "acl loading failed" ,
1552- Some ( format ! ( "file {}, error: {}" , acl_path , err ) ) ,
1552+ Some ( format ! ( "file {acl_path }, error: {err}" ) ) ,
15531553 ) ;
15541554 return Err ( err) ;
15551555 }
@@ -1587,7 +1587,7 @@ impl Config {
15871587 let err = Error :: new (
15881588 ErrorKind :: Invalid ,
15891589 "unsupported method" ,
1590- Some ( format ! ( "`{}` is not a supported method" , m ) ) ,
1590+ Some ( format ! ( "`{m }` is not a supported method" ) ) ,
15911591 ) ;
15921592 return Err ( err) ;
15931593 }
@@ -1603,7 +1603,7 @@ impl Config {
16031603 let err = Error :: new (
16041604 ErrorKind :: MissingField ,
16051605 "`password` is required" ,
1606- Some ( format ! ( "`password` is required for method {}" , method ) ) ,
1606+ Some ( format ! ( "`password` is required for method {method}" ) ) ,
16071607 ) ;
16081608 return Err ( err) ;
16091609 }
@@ -1692,7 +1692,7 @@ impl Config {
16921692 let err = Error :: new (
16931693 ErrorKind :: MissingField ,
16941694 "`password` is required" ,
1695- Some ( format ! ( "`password` is required for method {}" , method ) ) ,
1695+ Some ( format ! ( "`password` is required for method {method}" ) ) ,
16961696 ) ;
16971697 return Err ( err) ;
16981698 }
@@ -1794,7 +1794,7 @@ impl Config {
17941794 let err = Error :: new (
17951795 ErrorKind :: Invalid ,
17961796 "acl loading failed" ,
1797- Some ( format ! ( "file {}, error: {}" , acl_path , err ) ) ,
1797+ Some ( format ! ( "file {acl_path }, error: {err}" ) ) ,
17981798 ) ;
17991799 return Err ( err) ;
18001800 }
@@ -1849,7 +1849,7 @@ impl Config {
18491849 let err = Error :: new (
18501850 ErrorKind :: Invalid ,
18511851 "unsupported method" ,
1852- Some ( format ! ( "`{}` is not a supported method" , m ) ) ,
1852+ Some ( format ! ( "`{m }` is not a supported method" ) ) ,
18531853 ) ;
18541854 return Err ( err) ;
18551855 }
@@ -1954,7 +1954,7 @@ impl Config {
19541954 let err = Error :: new (
19551955 ErrorKind :: Invalid ,
19561956 "acl loading failed" ,
1957- Some ( format ! ( "file {}, error: {}" , acl_path , err ) ) ,
1957+ Some ( format ! ( "file {acl_path }, error: {err}" ) ) ,
19581958 ) ;
19591959 return Err ( err) ;
19601960 }
0 commit comments