Skip to content

Commit

Permalink
[refactor] replace unwrap with expect
Browse files Browse the repository at this point in the history
  • Loading branch information
dariogoetz committed Nov 27, 2023
1 parent 0a55972 commit 1834c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl<const C: usize, const R: usize, const L: usize, T: 'static, K: 'static + Co
activation_layers,
target_layer,
})
.unwrap();
.expect("there should be not more tri-layers than layers overall");
}

/// Iterates on the key codes of the current state.
Expand Down

0 comments on commit 1834c13

Please sign in to comment.