File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -69,8 +69,8 @@ mod tests {
6969
7070 // For the rest, don't bother testing the specific error
7171 // messages, just ensure nothing panics.
72- format ! ( "{}" , ParseError :: InvalidAscii ) ;
73- format ! ( "{}" , ParseError :: InvalidGeneration ) ;
74- format ! ( "{}" , ParseError :: TooFewFields ) ;
72+ let _ = format ! ( "{}" , ParseError :: InvalidAscii ) ;
73+ let _ = format ! ( "{}" , ParseError :: InvalidGeneration ) ;
74+ let _ = format ! ( "{}" , ParseError :: TooFewFields ) ;
7575 }
7676}
Original file line number Diff line number Diff line change @@ -185,12 +185,12 @@ mod tests {
185185 fn test_error_display ( ) {
186186 // Don't bother testing the specific error messages, just ensure
187187 // nothing panics.
188- format ! ( "{}" , RevocationSectionError :: MissingVersion ) ;
189- format ! ( "{}" , RevocationSectionError :: InvalidVersion ( 1 ) ) ;
190- format ! ( "{}" , RevocationSectionError :: MissingHeader ) ;
191- format ! ( "{}" , RevocationSectionError :: InvalidPreviousOffset ( 0 ) ) ;
192- format ! ( "{}" , RevocationSectionError :: InvalidLatestOffset ( 0 ) ) ;
193- format ! ( "{}" , RevocationSectionError :: MissingPreviousNull ) ;
194- format ! ( "{}" , RevocationSectionError :: MissingLatestNull ) ;
188+ let _ = format ! ( "{}" , RevocationSectionError :: MissingVersion ) ;
189+ let _ = format ! ( "{}" , RevocationSectionError :: InvalidVersion ( 1 ) ) ;
190+ let _ = format ! ( "{}" , RevocationSectionError :: MissingHeader ) ;
191+ let _ = format ! ( "{}" , RevocationSectionError :: InvalidPreviousOffset ( 0 ) ) ;
192+ let _ = format ! ( "{}" , RevocationSectionError :: InvalidLatestOffset ( 0 ) ) ;
193+ let _ = format ! ( "{}" , RevocationSectionError :: MissingPreviousNull ) ;
194+ let _ = format ! ( "{}" , RevocationSectionError :: MissingLatestNull ) ;
195195 }
196196}
You can’t perform that action at this time.
0 commit comments