Skip to content

Commit

Permalink
refactor(lint): fix new lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
EdJoPaTo committed Aug 14, 2024
1 parent 29fa109 commit 6282a17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interactive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ impl App {
}

fn on_scroll(&mut self, direction: ScrollDirection, column: u16, row: u16) -> Refresh {
let position = ratatui::layout::Position { x: column, y: row };
let position = Position { x: column, y: row };

let changed = if self.topic_overview.last_area.contains(position) {
match direction {
Expand Down
2 changes: 1 addition & 1 deletion src/interactive/mqtt_thread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ impl MqttThread {
.read()
.expect("mqtt history thread paniced")
.as_ref()
.map(std::string::ToString::to_string)
.map(ToString::to_string)
}

pub fn get_history(&self) -> RwLockReadGuard<MqttHistory> {
Expand Down

0 comments on commit 6282a17

Please sign in to comment.