File tree Expand file tree Collapse file tree 6 files changed +26
-17
lines changed Expand file tree Collapse file tree 6 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ macro_rules! step_identical_methods {
7070 fn sub_one( & self ) -> Self {
7171 Sub :: sub( * self , 1 )
7272 }
73- }
73+ } ;
7474}
7575
7676macro_rules! step_impl_unsigned {
Original file line number Diff line number Diff line change @@ -255,14 +255,14 @@ impl !Send for Span {}
255255impl !Sync for Span { }
256256
257257macro_rules! diagnostic_method {
258- ( $name: ident, $level: expr) => (
258+ ( $name: ident, $level: expr) => {
259259 /// Creates a new `Diagnostic` with the given `message` at the span
260260 /// `self`.
261261 #[ unstable( feature = "proc_macro_diagnostic" , issue = "54140" ) ]
262262 pub fn $name<T : Into <String >>( self , message: T ) -> Diagnostic {
263263 Diagnostic :: spanned( self , $level, message)
264264 }
265- )
265+ } ;
266266}
267267
268268impl Span {
Original file line number Diff line number Diff line change @@ -42,10 +42,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
4242 // but slicing `[u8]` with `i * N..` is optimized worse, due to the
4343 // possibility of `i * N` overflowing, than indexing `[[u8; N]]`.
4444 let b = unsafe {
45- std:: slice:: from_raw_parts(
46- b. as_ptr( ) as * const [ u8 ; BYTE_LEN ] ,
47- b. len( ) / BYTE_LEN ,
48- )
45+ std:: slice:: from_raw_parts( b. as_ptr( ) as * const [ u8 ; BYTE_LEN ] , b. len( ) / BYTE_LEN )
4946 } ;
5047 b. get( i) . map( |b| FixedSizeEncoding :: from_bytes( b) )
5148 }
@@ -61,7 +58,7 @@ macro_rules! fixed_size_encoding_byte_len_and_defaults {
6158 } ;
6259 self . write_to_bytes( & mut b[ i] ) ;
6360 }
64- }
61+ } ;
6562}
6663
6764impl FixedSizeEncoding for u32 {
Original file line number Diff line number Diff line change @@ -2305,7 +2305,7 @@ macro_rules! read_primitive {
23052305 value => Err ( ExpectedError ( "Number" . to_owned( ) , value. to_string( ) ) ) ,
23062306 }
23072307 }
2308- }
2308+ } ;
23092309}
23102310
23112311impl crate :: Decoder for Decoder {
Original file line number Diff line number Diff line change @@ -149,23 +149,35 @@ pub trait AsciiExt {
149149macro_rules! delegating_ascii_methods {
150150 ( ) => {
151151 #[ inline]
152- fn is_ascii( & self ) -> bool { self . is_ascii( ) }
152+ fn is_ascii( & self ) -> bool {
153+ self . is_ascii( )
154+ }
153155
154156 #[ inline]
155- fn to_ascii_uppercase( & self ) -> Self :: Owned { self . to_ascii_uppercase( ) }
157+ fn to_ascii_uppercase( & self ) -> Self :: Owned {
158+ self . to_ascii_uppercase( )
159+ }
156160
157161 #[ inline]
158- fn to_ascii_lowercase( & self ) -> Self :: Owned { self . to_ascii_lowercase( ) }
162+ fn to_ascii_lowercase( & self ) -> Self :: Owned {
163+ self . to_ascii_lowercase( )
164+ }
159165
160166 #[ inline]
161- fn eq_ignore_ascii_case( & self , o: & Self ) -> bool { self . eq_ignore_ascii_case( o) }
167+ fn eq_ignore_ascii_case( & self , o: & Self ) -> bool {
168+ self . eq_ignore_ascii_case( o)
169+ }
162170
163171 #[ inline]
164- fn make_ascii_uppercase( & mut self ) { self . make_ascii_uppercase( ) ; }
172+ fn make_ascii_uppercase( & mut self ) {
173+ self . make_ascii_uppercase( ) ;
174+ }
165175
166176 #[ inline]
167- fn make_ascii_lowercase( & mut self ) { self . make_ascii_lowercase( ) ; }
168- }
177+ fn make_ascii_lowercase( & mut self ) {
178+ self . make_ascii_lowercase( ) ;
179+ }
180+ } ;
169181}
170182
171183#[ stable( feature = "rust1" , since = "1.0.0" ) ]
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ cargo: beta
2020# bootstrapping issues with use of new syntax in this repo. If you're looking at
2121# the beta/stable branch, this key should be omitted, as we don't want to depend
2222# on rustfmt from nightly there.
23- rustfmt: nightly-2020-01-31
23+ rustfmt: nightly-2020-04-22
2424
2525# When making a stable release the process currently looks like:
2626#
You can’t perform that action at this time.
0 commit comments