@@ -179,7 +179,7 @@ impl<'a> NumericLiteral<'a> {
179179 }
180180
181181 pub fn group_digits ( output : & mut String , input : & str , group_size : usize , partial_group_first : bool , pad : bool ) {
182- debug_assert ! ( group_size > 0 , "group size should be greater than zero" ) ;
182+ debug_assert ! ( group_size > 0 ) ;
183183
184184 let mut digits = input. chars ( ) . filter ( |& c| c != '_' ) ;
185185
@@ -219,7 +219,7 @@ impl<'a> NumericLiteral<'a> {
219219}
220220
221221fn split_suffix < ' a > ( src : & ' a str , lit_kind : & LitKind ) -> ( & ' a str , Option < & ' a str > ) {
222- debug_assert ! ( lit_kind. is_numeric( ) , "`lit_kind` should be numeric" ) ;
222+ debug_assert ! ( lit_kind. is_numeric( ) ) ;
223223 lit_suffix_length ( lit_kind)
224224 . and_then ( |suffix_length| src. len ( ) . checked_sub ( suffix_length) )
225225 . map_or ( ( src, None ) , |split_pos| {
@@ -229,7 +229,7 @@ fn split_suffix<'a>(src: &'a str, lit_kind: &LitKind) -> (&'a str, Option<&'a st
229229}
230230
231231fn lit_suffix_length ( lit_kind : & LitKind ) -> Option < usize > {
232- debug_assert ! ( lit_kind. is_numeric( ) , "`lit_kind` should be numeric" ) ;
232+ debug_assert ! ( lit_kind. is_numeric( ) ) ;
233233 let suffix = match lit_kind {
234234 LitKind :: Int ( _, int_lit_kind) => match int_lit_kind {
235235 LitIntType :: Signed ( int_ty) => Some ( int_ty. name_str ( ) ) ,
0 commit comments