File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -919,7 +919,7 @@ fn test_from_iter_partially_drained_in_place_specialization() {
919919
920920#[ test]
921921fn test_from_iter_specialization_with_iterator_adapters ( ) {
922- fn assert_in_place_trait < T : InPlaceIterable > ( _: & T ) { } ;
922+ fn assert_in_place_trait < T : InPlaceIterable > ( _: & T ) { }
923923 let src: Vec < usize > = vec ! [ 0usize ; 256 ] ;
924924 let srcptr = src. as_ptr ( ) ;
925925 let iter = src
@@ -1198,7 +1198,7 @@ fn drain_filter_consumed_panic() {
11981198 struct Check {
11991199 index : usize ,
12001200 drop_counts : Rc < Mutex < Vec < usize > > > ,
1201- } ;
1201+ }
12021202
12031203 impl Drop for Check {
12041204 fn drop ( & mut self ) {
@@ -1250,7 +1250,7 @@ fn drain_filter_unconsumed_panic() {
12501250 struct Check {
12511251 index : usize ,
12521252 drop_counts : Rc < Mutex < Vec < usize > > > ,
1253- } ;
1253+ }
12541254
12551255 impl Drop for Check {
12561256 fn drop ( & mut self ) {
Original file line number Diff line number Diff line change @@ -1182,7 +1182,7 @@ impl<'a> Formatter<'a> {
11821182 /// ```
11831183 /// use std::fmt;
11841184 ///
1185- /// struct Foo { nb: i32 };
1185+ /// struct Foo { nb: i32 }
11861186 ///
11871187 /// impl Foo {
11881188 /// fn new(nb: i32) -> Foo {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use crate::task::{Context, Poll};
2121///
2222/// let read_future = poll_fn(read_line);
2323/// assert_eq!(read_future.await, "Hello, World!".to_owned());
24- /// # };
24+ /// # }
2525/// ```
2626#[ unstable( feature = "future_poll_fn" , issue = "72302" ) ]
2727pub fn poll_fn < T , F > ( f : F ) -> PollFn < F >
Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ impl<T> MaybeUninit<T> {
348348 /// ```rust,no_run
349349 /// use std::mem::MaybeUninit;
350350 ///
351- /// enum NotZero { One = 1, Two = 2 };
351+ /// enum NotZero { One = 1, Two = 2 }
352352 ///
353353 /// let x = MaybeUninit::<(u8, NotZero)>::zeroed();
354354 /// let x = unsafe { x.assume_init() };
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fn test() {
1818 struct Pair {
1919 fst : isize ,
2020 snd : isize ,
21- } ;
21+ }
2222 let mut p = Pair { fst : 10 , snd : 20 } ;
2323 let pptr: * mut Pair = & mut p;
2424 let iptr: * mut isize = pptr as * mut isize ;
Original file line number Diff line number Diff line change @@ -265,14 +265,14 @@ where
265265 running_tests. remove ( test) ;
266266 }
267267 timed_out
268- } ;
268+ }
269269
270270 fn calc_timeout ( running_tests : & TestMap ) -> Option < Duration > {
271271 running_tests. values ( ) . min ( ) . map ( |next_timeout| {
272272 let now = Instant :: now ( ) ;
273273 if * next_timeout >= now { * next_timeout - now } else { Duration :: new ( 0 , 0 ) }
274274 } )
275- } ;
275+ }
276276
277277 if concurrency == 1 {
278278 while !remaining. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments