clean up unused code warnings
Authored by
mfwolffe <wolffemf@dukes.jmu.edu>
- SHA
4604af2d9e976b8911688066509318511e43fd0d- Parents
-
385efdc - Tree
de313f8
4604af2
4604af2d9e976b8911688066509318511e43fd0d385efdc
de313f8| Status | File | + | - |
|---|---|---|---|
| M |
src/db/store.rs
|
2 | 3 |
| M |
src/matcher/fuzzy.rs
|
2 | 0 |
| M |
src/matcher/mod.rs
|
1 | 1 |
src/db/store.rsmodified@@ -28,9 +28,6 @@ pub enum DatabaseError { | ||
| 28 | 28 | |
| 29 | 29 | #[error("Path not found in database: {0}")] |
| 30 | 30 | PathNotFound(PathBuf), |
| 31 | - | |
| 32 | - #[error("Invalid path: {0}")] | |
| 33 | - InvalidPath(String), | |
| 34 | 31 | } |
| 35 | 32 | |
| 36 | 33 | /// The on-disk database format. |
@@ -275,11 +272,13 @@ impl Database { | ||
| 275 | 272 | } |
| 276 | 273 | |
| 277 | 274 | /// Get the number of entries in the database. |
| 275 | + #[allow(dead_code)] | |
| 278 | 276 | pub fn len(&self) -> usize { |
| 279 | 277 | self.data.entries.len() |
| 280 | 278 | } |
| 281 | 279 | |
| 282 | 280 | /// Check if the database is empty. |
| 281 | + #[allow(dead_code)] | |
| 283 | 282 | pub fn is_empty(&self) -> bool { |
| 284 | 283 | self.data.entries.is_empty() |
| 285 | 284 | } |
src/matcher/fuzzy.rsmodified@@ -9,7 +9,9 @@ use nucleo::{ | ||
| 9 | 9 | #[derive(Debug, Clone)] |
| 10 | 10 | pub struct Match<'a> { |
| 11 | 11 | pub path: &'a Path, |
| 12 | + #[allow(dead_code)] | |
| 12 | 13 | pub frecency: f64, |
| 14 | + #[allow(dead_code)] | |
| 13 | 15 | pub fuzzy_score: u32, |
| 14 | 16 | pub combined_score: f64, |
| 15 | 17 | } |
src/matcher/mod.rsmodified@@ -1,3 +1,3 @@ | ||
| 1 | 1 | mod fuzzy; |
| 2 | 2 | |
| 3 | -pub use fuzzy::{Match, Matcher}; | |
| 3 | +pub use fuzzy::Matcher; | |