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() {
919
919
920
920
#[ test]
921
921
fn 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 ) { }
923
923
let src: Vec < usize > = vec ! [ 0usize ; 256 ] ;
924
924
let srcptr = src. as_ptr ( ) ;
925
925
let iter = src
@@ -1198,7 +1198,7 @@ fn drain_filter_consumed_panic() {
1198
1198
struct Check {
1199
1199
index : usize ,
1200
1200
drop_counts : Rc < Mutex < Vec < usize > > > ,
1201
- } ;
1201
+ }
1202
1202
1203
1203
impl Drop for Check {
1204
1204
fn drop ( & mut self ) {
@@ -1250,7 +1250,7 @@ fn drain_filter_unconsumed_panic() {
1250
1250
struct Check {
1251
1251
index : usize ,
1252
1252
drop_counts : Rc < Mutex < Vec < usize > > > ,
1253
- } ;
1253
+ }
1254
1254
1255
1255
impl Drop for Check {
1256
1256
fn drop ( & mut self ) {
Original file line number Diff line number Diff line change @@ -1182,7 +1182,7 @@ impl<'a> Formatter<'a> {
1182
1182
/// ```
1183
1183
/// use std::fmt;
1184
1184
///
1185
- /// struct Foo { nb: i32 };
1185
+ /// struct Foo { nb: i32 }
1186
1186
///
1187
1187
/// impl Foo {
1188
1188
/// fn new(nb: i32) -> Foo {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ use crate::task::{Context, Poll};
21
21
///
22
22
/// let read_future = poll_fn(read_line);
23
23
/// assert_eq!(read_future.await, "Hello, World!".to_owned());
24
- /// # };
24
+ /// # }
25
25
/// ```
26
26
#[ unstable( feature = "future_poll_fn" , issue = "72302" ) ]
27
27
pub 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> {
348
348
/// ```rust,no_run
349
349
/// use std::mem::MaybeUninit;
350
350
///
351
- /// enum NotZero { One = 1, Two = 2 };
351
+ /// enum NotZero { One = 1, Two = 2 }
352
352
///
353
353
/// let x = MaybeUninit::<(u8, NotZero)>::zeroed();
354
354
/// let x = unsafe { x.assume_init() };
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ fn test() {
18
18
struct Pair {
19
19
fst : isize ,
20
20
snd : isize ,
21
- } ;
21
+ }
22
22
let mut p = Pair { fst : 10 , snd : 20 } ;
23
23
let pptr: * mut Pair = & mut p;
24
24
let iptr: * mut isize = pptr as * mut isize ;
Original file line number Diff line number Diff line change @@ -265,14 +265,14 @@ where
265
265
running_tests. remove ( test) ;
266
266
}
267
267
timed_out
268
- } ;
268
+ }
269
269
270
270
fn calc_timeout ( running_tests : & TestMap ) -> Option < Duration > {
271
271
running_tests. values ( ) . min ( ) . map ( |next_timeout| {
272
272
let now = Instant :: now ( ) ;
273
273
if * next_timeout >= now { * next_timeout - now } else { Duration :: new ( 0 , 0 ) }
274
274
} )
275
- } ;
275
+ }
276
276
277
277
if concurrency == 1 {
278
278
while !remaining. is_empty ( ) {
You can’t perform that action at this time.
0 commit comments