tenseleyflow/gump / 4604af2

Browse files

clean up unused code warnings

Authored by mfwolffe <wolffemf@dukes.jmu.edu>
SHA
4604af2d9e976b8911688066509318511e43fd0d
Parents
385efdc
Tree
de313f8

3 changed files

StatusFile+-
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 {
2828
 
2929
     #[error("Path not found in database: {0}")]
3030
     PathNotFound(PathBuf),
31
-
32
-    #[error("Invalid path: {0}")]
33
-    InvalidPath(String),
3431
 }
3532
 
3633
 /// The on-disk database format.
@@ -275,11 +272,13 @@ impl Database {
275272
     }
276273
 
277274
     /// Get the number of entries in the database.
275
+    #[allow(dead_code)]
278276
     pub fn len(&self) -> usize {
279277
         self.data.entries.len()
280278
     }
281279
 
282280
     /// Check if the database is empty.
281
+    #[allow(dead_code)]
283282
     pub fn is_empty(&self) -> bool {
284283
         self.data.entries.is_empty()
285284
     }
src/matcher/fuzzy.rsmodified
@@ -9,7 +9,9 @@ use nucleo::{
99
 #[derive(Debug, Clone)]
1010
 pub struct Match<'a> {
1111
     pub path: &'a Path,
12
+    #[allow(dead_code)]
1213
     pub frecency: f64,
14
+    #[allow(dead_code)]
1315
     pub fuzzy_score: u32,
1416
     pub combined_score: f64,
1517
 }
src/matcher/mod.rsmodified
@@ -1,3 +1,3 @@
11
 mod fuzzy;
22
 
3
-pub use fuzzy::{Match, Matcher};
3
+pub use fuzzy::Matcher;