Skip to content

Commit 96fe0c5

Browse files
Reformat using the new identifier sorting from rustfmt
1 parent 2be3384 commit 96fe0c5

File tree

236 files changed

+622
-654
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+622
-654
lines changed

alloc/benches/binary_heap.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::collections::BinaryHeap;
22

33
use rand::seq::SliceRandom;
4-
use test::{black_box, Bencher};
4+
use test::{Bencher, black_box};
55

66
#[bench]
77
fn bench_find_smallest_1000(b: &mut Bencher) {

alloc/benches/btree/map.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::collections::BTreeMap;
22
use std::ops::RangeBounds;
33

4-
use rand::seq::SliceRandom;
54
use rand::Rng;
6-
use test::{black_box, Bencher};
5+
use rand::seq::SliceRandom;
6+
use test::{Bencher, black_box};
77

88
macro_rules! map_insert_rand_bench {
99
($name: ident, $n: expr, $map: ident) => {

alloc/benches/slice.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::{mem, ptr};
22

3-
use rand::distributions::{Alphanumeric, DistString, Standard};
43
use rand::Rng;
5-
use test::{black_box, Bencher};
4+
use rand::distributions::{Alphanumeric, DistString, Standard};
5+
use test::{Bencher, black_box};
66

77
#[bench]
88
fn iterator(b: &mut Bencher) {

alloc/benches/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use test::{black_box, Bencher};
1+
use test::{Bencher, black_box};
22

33
#[bench]
44
fn char_iterator(b: &mut Bencher) {

alloc/benches/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::iter::repeat;
22

3-
use test::{black_box, Bencher};
3+
use test::{Bencher, black_box};
44

55
#[bench]
66
fn bench_with_capacity(b: &mut Bencher) {

alloc/benches/vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::iter::repeat;
22

33
use rand::RngCore;
4-
use test::{black_box, Bencher};
4+
use test::{Bencher, black_box};
55

66
#[bench]
77
fn bench_new(b: &mut Bencher) {

alloc/benches/vec_deque.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
use std::collections::{vec_deque, VecDeque};
1+
use std::collections::{VecDeque, vec_deque};
22
use std::mem;
33

4-
use test::{black_box, Bencher};
4+
use test::{Bencher, black_box};
55

66
#[bench]
77
fn bench_new(b: &mut Bencher) {

alloc/src/boxed.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ use core::ops::{
199199
DerefPure, DispatchFromDyn, Receiver,
200200
};
201201
use core::pin::{Pin, PinCoerceUnsized};
202-
use core::ptr::{self, addr_of_mut, NonNull, Unique};
202+
use core::ptr::{self, NonNull, Unique, addr_of_mut};
203203
use core::task::{Context, Poll};
204204
use core::{borrow, fmt, slice};
205205

@@ -2480,7 +2480,10 @@ impl<Args: Tuple, F: AsyncFnOnce<Args> + ?Sized, A: Allocator> AsyncFnOnce<Args>
24802480

24812481
#[unstable(feature = "async_fn_traits", issue = "none")]
24822482
impl<Args: Tuple, F: AsyncFnMut<Args> + ?Sized, A: Allocator> AsyncFnMut<Args> for Box<F, A> {
2483-
type CallRefFuture<'a> = F::CallRefFuture<'a> where Self: 'a;
2483+
type CallRefFuture<'a>
2484+
= F::CallRefFuture<'a>
2485+
where
2486+
Self: 'a;
24842487

24852488
extern "rust-call" fn async_call_mut(&mut self, args: Args) -> Self::CallRefFuture<'_> {
24862489
F::async_call_mut(self, args)

alloc/src/collections/binary_heap/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145

146146
use core::alloc::Allocator;
147147
use core::iter::{FusedIterator, InPlaceIterable, SourceIter, TrustedFused, TrustedLen};
148-
use core::mem::{self, swap, ManuallyDrop};
148+
use core::mem::{self, ManuallyDrop, swap};
149149
use core::num::NonZero;
150150
use core::ops::{Deref, DerefMut};
151151
use core::{fmt, ptr};

alloc/src/collections/binary_heap/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use std::panic::{catch_unwind, AssertUnwindSafe};
1+
use std::panic::{AssertUnwindSafe, catch_unwind};
22

33
use super::*;
44
use crate::boxed::Box;

0 commit comments

Comments
 (0)