Adjust some comments on individual use
declarations. · model-checking/verify-rust-std@0723962 (original) (raw)
Navigation Menu
- GitHub Copilot Write better code with AI
- GitHub Models New Manage and compare prompts
- GitHub Advanced Security Find and fix vulnerabilities
- Actions Automate any workflow
- Codespaces Instant dev environments
- Issues Plan and track work
- Code Review Manage code changes
- Discussions Collaborate outside of code
- Code Search Find more, search less
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Commit 0723962
Adjust some comments on individual use
declarations.
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.
File tree
1 file changed
lines changed
1 file changed
lines changed
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
1 | -// We avoid relying on anything else in the crate, apart from the `Debug` trait. | |
2 | -use crate::fmt::Debug; | |
1 | +use crate::fmt::Debug; // the `Debug` trait is the only thing we use from `crate::fmt` | |
3 | 2 | use std::cmp::Ordering; |
4 | 3 | use std::sync::atomic::{AtomicUsize, Ordering::SeqCst}; |
5 | 4 |