Style and Clippy fixes.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
|
||||
/// The current index for the value counter.
|
||||
static CURRENT: AtomicUsize = AtomicUsize::new(1);
|
||||
|
||||
/// An extremely basic way to identify a piece of data.
|
||||
@@ -9,9 +10,7 @@ pub struct ValueIdentifier(usize);
|
||||
|
||||
impl Default for ValueIdentifier {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
0: CURRENT.fetch_add(1, Ordering::SeqCst),
|
||||
}
|
||||
Self(CURRENT.fetch_add(1, Ordering::SeqCst))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user