Skip to content

Commit

Permalink
Fix compilation issues and run cargo clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
danirod committed Jun 26, 2024
1 parent 501419d commit db9bf86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/fs/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

use std::collections::HashMap;

use adw::prelude::ObjectExt;
use glib::Object;
use serde::{Deserialize, Serialize};

Expand Down
4 changes: 2 additions & 2 deletions src/widgets/sidebar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ mod imp {
}

#[template_callback]
fn on_activate(list: ListView, pos: u32, data: &Object) {
fn on_activate(list: ListView, pos: u32, _data: &Object) {
let window = list.root().and_downcast::<CarteroWindow>().unwrap();
let Some(model) = list.model() else {
return;
Expand All @@ -147,7 +147,7 @@ mod imp {

match inner_value.node_type() {
TreeNodeKind::Endpoint => {
window.open_endpoint(&path);
let _ = window.open_endpoint(&path);
}
_ => println!("Not implemented yet, wait a minute"),
}
Expand Down

0 comments on commit db9bf86

Please sign in to comment.