Browse Source

small warning fix

Michael Ekstrand 2 months ago
parent
commit
c3fb2d09d7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/commands/parse_isbns/parsers.rs

+ 1
- 1
src/commands/parse_isbns/parsers.rs

@@ -1,4 +1,3 @@
-use anyhow::Result;
 use regex::{Regex, RegexSet, Match, Captures};
 
 /// Single ISBN parsed from a string
@@ -84,6 +83,7 @@ pub struct IsbnParser<'p, 's> {
   position: usize
 }
 
+#[allow(unused)]
 fn preclean(s: &str) -> String {
   let mut res = String::with_capacity(s.len());
   for c in s.chars() {