Skip to content

Commit

Permalink
chore: small fixes to constraint-explorer (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshka authored Jan 31, 2024
1 parent 9ec43ef commit 78f1c14
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/constraint-explorer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,6 @@ impl App {
self.spacing = self.spacing.saturating_sub(1);
}

// exits edit mode or the app
fn exit(&mut self) {
self.mode = AppMode::Quit
}
Expand All @@ -230,7 +229,6 @@ impl App {
if self.constraints.is_empty() {
return;
}
// save the editor state
let constraint = match name {
ConstraintName::Length => Length(self.value),
ConstraintName::Percentage => Percentage(self.value),
Expand Down Expand Up @@ -265,7 +263,7 @@ impl Widget for &App {
Length(2), // instructions
Length(1), // legend
Length(1), // gap
Fill(1),
Fill(1), // blocks
]));

self.header().render(header_area, buf);
Expand Down

0 comments on commit 78f1c14

Please sign in to comment.