Skip to content

Commit 367ce3e

Browse files
author
Fedor Ryabinin
committed
Fix imports
1 parent 9346adc commit 367ce3e

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

library/alloctests/tests/sort/known_good_stable_sort.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66

77
#![feature(ub_checks)]
88
use alloc::alloc::{Layout, alloc, dealloc};
9-
use safety::requires;
10-
use std::ptr;
119

1210
#[cfg(kani)]
1311
#[unstable(feature = "kani", issue = "none")]
1412
use core::kani;
1513
#[allow(unused_imports)]
1614
#[unstable(feature = "ub_checks", issue = "none")]
1715
use core::ub_checks::*;
16+
use std::ptr;
17+
18+
use safety::requires;
1819

1920
/// Sort `v` preserving initial order of equal elements.
2021
///

library/core/src/fmt/rt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl<'a> Invariant for ArgumentType<'a> {
249249
fn is_safe(&self) -> bool {
250250
match self {
251251
ArgumentType::Placeholder { value, formatter, .. } => true,
252-
ArgumentType::Count(_) => true
252+
ArgumentType::Count(_) => true,
253253
}
254254
}
255255
}

library/core/src/iter/adapters/map_windows.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::iter::FusedIterator;
22
use crate::mem::MaybeUninit;
3-
use crate::{fmt, ptr};
43
use crate::ub_checks::Invariant;
4+
use crate::{fmt, ptr};
55

66
/// An iterator over the mapped windows of another iterator.
77
///

0 commit comments

Comments
 (0)