Skip to content

Commit f3c5d85

Browse files
committed
feat: remove unused code
1 parent b7656e3 commit f3c5d85

File tree

7 files changed

+4
-366
lines changed

7 files changed

+4
-366
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ cpal = "^0"
5656
# pipewire = { optional = true, version = "^0" }
5757

5858
[features]
59-
default = [ "devicons" ]
59+
default = []
6060
devicons = [ "phf" ]
6161
jack = [ "cpal/jack" ]
6262
mouse = []

src/bin/client/commands/search_skim.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct DiziSkimItem {
2020
}
2121

2222
impl SkimItem for DiziSkimItem {
23-
fn text(&self) -> Cow<str> {
23+
fn text<'a>(&'a self) -> Cow<'a, str> {
2424
borrow::Cow::Borrowed(self.value.as_str())
2525
}
2626
}

src/bin/client/context/tab_context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl TabContext {
4444
self.tabs.remove(index)
4545
}
4646

47-
pub fn iter_mut(&mut self) -> IterMut<JoshutoTab> {
47+
pub fn iter_mut<'a>(&'a mut self) -> IterMut<'a, JoshutoTab> {
4848
self.tabs.iter_mut()
4949
}
5050
}

src/bin/client/fs/dirlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ impl JoshutoDirList {
104104
}
105105
}
106106

107-
pub fn iter(&self) -> Iter<JoshutoDirEntry> {
107+
pub fn iter<'a>(&'a self) -> Iter<'a, JoshutoDirEntry> {
108108
self.contents.iter()
109109
}
110110

src/bin/client/ui/mod.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,3 @@ pub mod views;
33
pub mod widgets;
44

55
pub use backend::*;
6-
7-
#[derive(Debug, Clone, Copy, Hash, PartialEq, Eq)]
8-
pub struct Rect {
9-
pub x: u16,
10-
pub y: u16,
11-
pub width: u16,
12-
pub height: u16,
13-
}

0 commit comments

Comments
 (0)