diff --git a/core/rustfmt.toml b/core/rustfmt.toml index 474bdda..5850993 100644 --- a/core/rustfmt.toml +++ b/core/rustfmt.toml @@ -1,4 +1,3 @@ max_width = 89 -version = "Two" comment_width = 89 error_on_line_overflow = false diff --git a/core/src/common/engines/parity_backend.rs b/core/src/common/engines/parity_backend.rs index 619418b..add4be8 100644 --- a/core/src/common/engines/parity_backend.rs +++ b/core/src/common/engines/parity_backend.rs @@ -138,12 +138,11 @@ impl Engine for ParityEngine { let x = LK.lock(); // step 1 - let ret = crate::parse_prefix!( - self.hdr - .get(META_COLID, &self.prefix_allocator.key) - .unwrap() - .unwrap() - ); + let ret = crate::parse_prefix!(self + .hdr + .get(META_COLID, &self.prefix_allocator.key) + .unwrap() + .unwrap()); // step 2 self.hdr diff --git a/core/src/common/engines/rocks_backend.rs b/core/src/common/engines/rocks_backend.rs index 1ed7f03..d518f01 100644 --- a/core/src/common/engines/rocks_backend.rs +++ b/core/src/common/engines/rocks_backend.rs @@ -126,9 +126,11 @@ impl Engine for RocksEngine { let x = LK.lock(); // step 1 - let ret = crate::parse_prefix!( - self.meta.get(self.prefix_allocator.key).unwrap().unwrap() - ); + let ret = crate::parse_prefix!(self + .meta + .get(self.prefix_allocator.key) + .unwrap() + .unwrap()); // step 2 self.meta diff --git a/core/tests/basic_mapx_raw_test.rs b/core/tests/basic_mapx_raw_test.rs index bf7aa26..72986f8 100644 --- a/core/tests/basic_mapx_raw_test.rs +++ b/core/tests/basic_mapx_raw_test.rs @@ -59,12 +59,10 @@ fn basic_cases() { reloaded.insert(&[6], &[6]); reloaded.insert(&[80], &[80]); - assert!( - reloaded - .range(Cow::Borrowed(&[][..])..Cow::Borrowed(&[1][..])) - .next() - .is_none() - ); + assert!(reloaded + .range(Cow::Borrowed(&[][..])..Cow::Borrowed(&[1][..])) + .next() + .is_none()); assert_eq!( vec![4], reloaded diff --git a/utils/slot_db/rustfmt.toml b/utils/slot_db/rustfmt.toml index a0f3a5c..ebb48da 100644 --- a/utils/slot_db/rustfmt.toml +++ b/utils/slot_db/rustfmt.toml @@ -1,4 +1,3 @@ max_width = 79 -version = "Two" comment_width = 79 # error_on_line_overflow = false diff --git a/wrappers/rustfmt.toml b/wrappers/rustfmt.toml index 474bdda..5850993 100644 --- a/wrappers/rustfmt.toml +++ b/wrappers/rustfmt.toml @@ -1,4 +1,3 @@ max_width = 89 -version = "Two" comment_width = 89 error_on_line_overflow = false diff --git a/wrappers/src/common/ende.rs b/wrappers/src/common/ende.rs index 7377c74..37ef0fa 100644 --- a/wrappers/src/common/ende.rs +++ b/wrappers/src/common/ende.rs @@ -518,9 +518,7 @@ macro_rules! impl_all { }; } -impl_all!( - i8, i16, i32, i64, i128, isize, u8, u16, u32, u64, u128, usize -); +impl_all!(i8, i16, i32, i64, i128, isize, u8, u16, u32, u64, u128, usize); impl_all!( @i8, @i16, @i32, @i64, @i128, @isize, @u16, @u32, @u64, @u128, @usize ); diff --git a/wrappers/src/dagmap/rawkey/test.rs b/wrappers/src/dagmap/rawkey/test.rs index f37adda..e5d0b52 100644 --- a/wrappers/src/dagmap/rawkey/test.rs +++ b/wrappers/src/dagmap/rawkey/test.rs @@ -1,7 +1,9 @@ use super::*; macro_rules! s { - ($i: expr) => {{ $i.as_bytes().to_vec() }}; + ($i: expr) => {{ + $i.as_bytes().to_vec() + }}; } #[test] diff --git a/wrappers/tests/basic_mapx_ord_rawvalue_test.rs b/wrappers/tests/basic_mapx_ord_rawvalue_test.rs index 1167338..830af79 100644 --- a/wrappers/tests/basic_mapx_ord_rawvalue_test.rs +++ b/wrappers/tests/basic_mapx_ord_rawvalue_test.rs @@ -76,12 +76,10 @@ fn basic_cases() { &100usize.to_be_bytes()[..], &reloaded.range(&100..=&999).next().unwrap().1[..] ); - assert!( - reloaded - .range((Bound::Excluded(&100), Bound::Included(&999))) - .next() - .is_none() - ); + assert!(reloaded + .range((Bound::Excluded(&100), Bound::Included(&999))) + .next() + .is_none()); assert_eq!( &100usize.to_be_bytes()[..], diff --git a/wrappers/tests/basic_mapx_ord_test.rs b/wrappers/tests/basic_mapx_ord_test.rs index 6318b8e..6030655 100644 --- a/wrappers/tests/basic_mapx_ord_test.rs +++ b/wrappers/tests/basic_mapx_ord_test.rs @@ -80,12 +80,10 @@ fn basic_cases() { assert_eq!(100, reloaded.range(12..=999).next().unwrap().1.idx); assert_eq!(100, reloaded.range(100..=999).next().unwrap().1.idx); - assert!( - reloaded - .range((Bound::Excluded(100), Bound::Included(999))) - .next() - .is_none() - ); + assert!(reloaded + .range((Bound::Excluded(100), Bound::Included(999))) + .next() + .is_none()); assert_eq!(100, reloaded.get_ge(&99).unwrap().1.idx); assert_eq!(100, reloaded.get_ge(&100).unwrap().1.idx);