Skip to content

Commit

Permalink
Cleanup some linter errors
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Malyshev <[email protected]>
  • Loading branch information
rucoder committed Oct 31, 2024
1 parent 2a86109 commit 8e6c46a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ impl Application {
// send initial redraw event
self.invalidate();

#[allow(unused_assignments)]
let mut do_redraw = true;
let app_cancel_token = CancellationToken::new();

Expand Down Expand Up @@ -649,7 +650,6 @@ impl Application {
);
self.ui.pop_layer();
}
_ => {}
},
_ => {}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ui/app_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl IPresenter for ApplicationsPage {
area: &ratatui::prelude::Rect,
frame: &mut ratatui::Frame<'_>,
model: &std::rc::Rc<Model>,
focused: bool,
_focused: bool,
) {
self.render_app_list(model, *area, frame);
}
Expand Down
1 change: 0 additions & 1 deletion src/ui/input_dialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ fn on_child_ui_action(
pub fn create_input_dialog(
window_caption: &str,
caption: &str,
id: &str,
content: &str,
hint: &str,
) -> impl IWindow {
Expand Down
2 changes: 1 addition & 1 deletion src/ui/ipdialog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ fn update_current_layout(w: &mut Window<IpDialogState>, rect: &Rect) {
}
}

fn ip_dialog_layout(w: &mut Window<IpDialogState>, rect: &Rect, model: &Rc<Model>) {
fn ip_dialog_layout(w: &mut Window<IpDialogState>, rect: &Rect, _model: &Rc<Model>) {
debug!("ip_dialog_layout. selected tab: {}", w.state.selected_tab);
w.clear_layout();

Expand Down
1 change: 0 additions & 1 deletion src/ui/ui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ impl Ui {
let d = create_input_dialog(
"Change server URL",
"Server URL",
"id",
url,
"https://prod.zedcontrol.zededa.net",
);
Expand Down
2 changes: 2 additions & 0 deletions src/ui/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ impl<D> WindowBuilder<D> {
self
}

#[allow(dead_code)]
pub fn with_taborder(mut self, tab_order: Vec<String>) -> Self {
self.tab_order = Some(tab_order);
self
}

#[allow(dead_code)]
pub fn with_focused_view<S: Into<String>>(mut self, name: S) -> Self {
self.focused_view = Some(name.into());
self
Expand Down

0 comments on commit 8e6c46a

Please sign in to comment.