Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
run fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Apr 26, 2023
1 parent 9ad2437 commit adf0589
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions frame/aura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions frame/aura/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit adf0589

Please sign in to comment.