File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed
crates/font-awesome-as-a-crate Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ fn write_fontawesome_sprite() {
3434 dest_file
3535 . write_all (
3636 format ! (
37- r####"(b"{dirname}",b"{filename}")=>r### "{data}"## #,"#### ,
37+ r####"(b"{dirname}",b"{filename}")=>r#"{data}"#,"#### ,
3838 data = data,
3939 dirname = dirname,
4040 filename = filename. replace( ".svg" , "" ) ,
Original file line number Diff line number Diff line change @@ -136,7 +136,11 @@ impl CdnBackend {
136136 invalidation_id : & str ,
137137 path_patterns : & [ & str ] ,
138138 ) {
139- let CdnBackend :: Dummy { ref invalidation_requests, .. } = self else {
139+ let CdnBackend :: Dummy {
140+ ref invalidation_requests,
141+ ..
142+ } = self
143+ else {
140144 panic ! ( "invalid CDN backend" ) ;
141145 } ;
142146
@@ -559,7 +563,11 @@ mod tests {
559563 use aws_smithy_http:: body:: SdkBody ;
560564
561565 fn active_invalidations ( cdn : & CdnBackend , distribution_id : & str ) -> Vec < CdnInvalidation > {
562- let CdnBackend :: Dummy { ref invalidation_requests, .. } = cdn else {
566+ let CdnBackend :: Dummy {
567+ ref invalidation_requests,
568+ ..
569+ } = cdn
570+ else {
563571 panic ! ( "invalid CDN backend" ) ;
564572 } ;
565573
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ macro_rules! migration {
4747 self . description( )
4848 ) ;
4949
50+ #[ allow( clippy:: redundant_closure_call) ]
5051 $up_func( transaction)
5152 }
5253 fn down( & self , transaction: & mut Transaction ) -> Result <( ) , PostgresError > {
@@ -56,6 +57,7 @@ macro_rules! migration {
5657 self . version( ) ,
5758 self . description( )
5859 ) ;
60+ #[ allow( clippy:: redundant_closure_call) ]
5961 $down_func( transaction)
6062 }
6163 }
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ mod tests {
120120 } ] ;
121121
122122 assert_eq ! (
123- calculate_diff( db_releases. iter( ) , vec! [ ] . iter( ) ) ,
123+ calculate_diff( db_releases. iter( ) , [ ] . iter( ) ) ,
124124 vec![ Difference :: CrateNotInIndex ( "krate" . into( ) ) ]
125125 ) ;
126126 }
@@ -142,7 +142,7 @@ mod tests {
142142 } ] ;
143143
144144 assert_eq ! (
145- calculate_diff( vec! [ ] . iter( ) , index_releases. iter( ) ) ,
145+ calculate_diff( [ ] . iter( ) , index_releases. iter( ) ) ,
146146 vec![ Difference :: CrateNotInDb (
147147 "krate" . into( ) ,
148148 vec![ "0.0.2" . into( ) , "0.0.3" . into( ) ]
You can’t perform that action at this time.
0 commit comments