Skip to content

Commit db9bf86

Browse files
committed
Fix compilation issues and run cargo clippy
1 parent 501419d commit db9bf86

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/fs/metadata.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
use std::collections::HashMap;
1919

20+
use adw::prelude::ObjectExt;
2021
use glib::Object;
2122
use serde::{Deserialize, Serialize};
2223

src/widgets/sidebar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ mod imp {
134134
}
135135

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

148148
match inner_value.node_type() {
149149
TreeNodeKind::Endpoint => {
150-
window.open_endpoint(&path);
150+
let _ = window.open_endpoint(&path);
151151
}
152152
_ => println!("Not implemented yet, wait a minute"),
153153
}

0 commit comments

Comments
 (0)