@@ -519,7 +519,7 @@ impl<S: VecStorage<u8> + ?Sized> StringInner<S> {
519519 pub fn truncate ( & mut self , new_len : usize ) {
520520 if new_len <= self . len ( ) {
521521 assert ! ( self . is_char_boundary( new_len) ) ;
522- self . vec . truncate ( new_len)
522+ self . vec . truncate ( new_len) ;
523523 }
524524 }
525525
@@ -619,7 +619,7 @@ impl<S: VecStorage<u8> + ?Sized> StringInner<S> {
619619 /// ```
620620 #[ inline]
621621 pub fn clear ( & mut self ) {
622- self . vec . clear ( )
622+ self . vec . clear ( ) ;
623623 }
624624}
625625
@@ -701,7 +701,7 @@ impl<S: VecStorage<u8> + ?Sized> fmt::Display for StringInner<S> {
701701impl < S : VecStorage < u8 > + ?Sized > hash:: Hash for StringInner < S > {
702702 #[ inline]
703703 fn hash < H : hash:: Hasher > ( & self , hasher : & mut H ) {
704- <str as hash:: Hash >:: hash ( self , hasher)
704+ <str as hash:: Hash >:: hash ( self , hasher) ;
705705 }
706706}
707707
@@ -1153,26 +1153,26 @@ mod tests {
11531153 let number = 5 ;
11541154 let float = 3.12 ;
11551155 let formatted = format ! ( 15 ; "{:0>3} plus {float}" , number) . unwrap ( ) ;
1156- assert_eq ! ( formatted, "005 plus 3.12" )
1156+ assert_eq ! ( formatted, "005 plus 3.12" ) ;
11571157 }
11581158 #[ test]
11591159 fn format_inferred_capacity ( ) {
11601160 let number = 5 ;
11611161 let float = 3.12 ;
11621162 let formatted: String < 15 > = format ! ( "{:0>3} plus {float}" , number) . unwrap ( ) ;
1163- assert_eq ! ( formatted, "005 plus 3.12" )
1163+ assert_eq ! ( formatted, "005 plus 3.12" ) ;
11641164 }
11651165
11661166 #[ test]
11671167 fn format_overflow ( ) {
11681168 let i = 1234567 ;
11691169 let formatted = format ! ( 4 ; "13{}" , i) ;
1170- assert_eq ! ( formatted, Err ( core:: fmt:: Error ) )
1170+ assert_eq ! ( formatted, Err ( core:: fmt:: Error ) ) ;
11711171 }
11721172
11731173 #[ test]
11741174 fn format_plain_string_overflow ( ) {
11751175 let formatted = format ! ( 2 ; "123" ) ;
1176- assert_eq ! ( formatted, Err ( core:: fmt:: Error ) )
1176+ assert_eq ! ( formatted, Err ( core:: fmt:: Error ) ) ;
11771177 }
11781178}
0 commit comments