@@ -2162,19 +2162,19 @@ impl NestedDisplay for Call {
21622162 if i != 0 {
21632163 write ! ( f, ", " ) ?;
21642164 }
2165- write ! ( f, "{}" , arg ) ?;
2165+ write ! ( f, "{arg}" ) ?;
21662166 }
21672167 if let Some ( rest) = self . args . var_args . as_ref ( ) {
21682168 if !self . args . pos_args ( ) . is_empty ( ) {
21692169 write ! ( f, ", " ) ?;
21702170 }
2171- write ! ( f, "*{}" , rest ) ?;
2171+ write ! ( f, "*{rest}" ) ?;
21722172 }
21732173 for ( i, kw_arg) in self . args . kw_args ( ) . iter ( ) . enumerate ( ) {
21742174 if i != 0 || !self . args . pos_args ( ) . is_empty ( ) || self . args . var_args . is_some ( ) {
21752175 write ! ( f, ", " ) ?;
21762176 }
2177- write ! ( f, "{}" , kw_arg ) ?;
2177+ write ! ( f, "{kw_arg}" ) ?;
21782178 }
21792179 write ! ( f, ")" )
21802180 } else {
@@ -3194,7 +3194,7 @@ impl NestedDisplay for ConstApp {
31943194 fn fmt_nest ( & self , f : & mut std:: fmt:: Formatter < ' _ > , level : usize ) -> std:: fmt:: Result {
31953195 writeln ! ( f, "{}" , self . obj) ?;
31963196 if let Some ( attr_name) = & self . attr_name {
3197- writeln ! ( f, "{}" , attr_name ) ?;
3197+ writeln ! ( f, "{attr_name}" ) ?;
31983198 }
31993199 writeln ! ( f, "(" ) ?;
32003200 self . args . fmt_nest ( f, level + 1 ) ?;
@@ -4446,11 +4446,11 @@ impl fmt::Display for VarName {
44464446#[ pymethods]
44474447impl VarName {
44484448 pub fn __repr__ ( & self ) -> String {
4449- format ! ( "VarName({})" , self )
4449+ format ! ( "VarName({self })" )
44504450 }
44514451
44524452 pub fn __str__ ( & self ) -> String {
4453- format ! ( "VarName({})" , self )
4453+ format ! ( "VarName({self })" )
44544454 }
44554455
44564456 #[ staticmethod]
@@ -4715,11 +4715,11 @@ impl From<Identifier> for Expr {
47154715#[ pymethods]
47164716impl Identifier {
47174717 pub fn __repr__ ( & self ) -> String {
4718- format ! ( "Identifier({})" , self )
4718+ format ! ( "Identifier({self })" )
47194719 }
47204720
47214721 pub fn __str__ ( & self ) -> String {
4722- format ! ( "Identifier({})" , self )
4722+ format ! ( "Identifier({self })" )
47234723 }
47244724
47254725 pub fn is_const ( & self ) -> bool {
@@ -5245,11 +5245,11 @@ impl VarSignature {
52455245 }
52465246
52475247 pub fn __repr__ ( & self ) -> String {
5248- format ! ( "VarSignature({})" , self )
5248+ format ! ( "VarSignature({self })" )
52495249 }
52505250
52515251 pub fn __str__ ( & self ) -> String {
5252- format ! ( "VarSignature({})" , self )
5252+ format ! ( "VarSignature({self })" )
52535253 }
52545254}
52555255
@@ -5704,8 +5704,8 @@ pub enum GuardClause {
57045704impl NestedDisplay for GuardClause {
57055705 fn fmt_nest ( & self , f : & mut std:: fmt:: Formatter < ' _ > , _level : usize ) -> std:: fmt:: Result {
57065706 match self {
5707- Self :: Condition ( cond) => write ! ( f, "{}" , cond ) ,
5708- Self :: Bind ( def) => write ! ( f, "{}" , def ) ,
5707+ Self :: Condition ( cond) => write ! ( f, "{cond}" ) ,
5708+ Self :: Bind ( def) => write ! ( f, "{def}" ) ,
57095709 }
57105710 }
57115711}
0 commit comments