Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/salsa/src/revision.rs')
-rw-r--r--crates/salsa/src/revision.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/crates/salsa/src/revision.rs b/crates/salsa/src/revision.rs
index f97295ced6..61d38a3bcc 100644
--- a/crates/salsa/src/revision.rs
+++ b/crates/salsa/src/revision.rs
@@ -21,9 +21,7 @@ impl Revision {
}
pub(crate) fn from(g: u32) -> Self {
- Self {
- generation: NonZeroU32::new(g).unwrap(),
- }
+ Self { generation: NonZeroU32::new(g).unwrap() }
}
pub(crate) fn next(self) -> Revision {
@@ -48,9 +46,7 @@ pub(crate) struct AtomicRevision {
impl AtomicRevision {
pub(crate) fn start() -> Self {
- Self {
- data: AtomicU32::new(START),
- }
+ Self { data: AtomicU32::new(START) }
}
pub(crate) fn load(&self) -> Revision {