diff --git a/frame/aura/src/lib.rs b/frame/aura/src/lib.rs index 9458b37d97786..ca63a66e0e964 100644 --- a/frame/aura/src/lib.rs +++ b/frame/aura/src/lib.rs @@ -139,8 +139,8 @@ pub mod pallet { /// If this is `false`, the pallet will require that subsequent blocks always have higher slots /// than previous ones. /// - /// Regardless of the setting of this storage value, the pallet will always enforce the invariant - /// that slots don't move backwards as the chain progresses. + /// Regardless of the setting of this storage value, the pallet will always enforce the + /// invariant that slots don't move backwards as the chain progresses. /// /// The typical value for this should be 'false' unless this pallet is being augmented by /// another pallet which enforces some limitation on the number of blocks authors can create diff --git a/frame/aura/src/tests.rs b/frame/aura/src/tests.rs index 09779d475dee7..339b17c5675c2 100644 --- a/frame/aura/src/tests.rs +++ b/frame/aura/src/tests.rs @@ -56,9 +56,7 @@ fn disabled_validators_cannot_author_blocks() { } #[test] -#[should_panic( - expected = "Slot must increase" -)] +#[should_panic(expected = "Slot must increase")] fn pallet_requires_slot_to_increase_unless_allowed() { new_test_ext(vec![0, 1, 2, 3]).execute_with(|| { let slot = Slot::from(1); @@ -93,9 +91,7 @@ fn pallet_can_allow_unchanged_slot() { } #[test] -#[should_panic( - expected = "Slot must not decrease" -)] +#[should_panic(expected = "Slot must not decrease")] fn pallet_always_rejects_decreasing_slot() { new_test_ext(vec![0, 1, 2, 3]).execute_with(|| { let slot = Slot::from(2);