Skip to content

Commit

Permalink
Adjust some comments on individual use declarations.
Browse files Browse the repository at this point in the history
When we do the big `use` reformatting there are a tiny number of cases
where rustfmt moves a comment from one `use` item to another in an
undesirable way. This commit pre-emptively rearranges things to prevent
this from happening.
  • Loading branch information
nnethercote committed Jul 16, 2024
1 parent 4320ba0 commit 0723962
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions alloc/src/testing/crash_test.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// We avoid relying on anything else in the crate, apart from the `Debug` trait.
use crate::fmt::Debug;
use crate::fmt::Debug; // the `Debug` trait is the only thing we use from `crate::fmt`
use std::cmp::Ordering;
use std::sync::atomic::{AtomicUsize, Ordering::SeqCst};

Expand Down

0 comments on commit 0723962

Please sign in to comment.