Skip to content

Commit ccb7c5d

Browse files
committed
Cleanup code, fix warnings
1 parent 4c88e09 commit ccb7c5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/scanner/src/lib.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,6 @@ fn main(mut cx: ModuleContext) -> NeonResult<()> {
178178

179179
#[cfg(test)]
180180
mod tests {
181-
use std::io;
182-
183181
use super::*;
184182

185183
#[test]
@@ -191,7 +189,7 @@ mod tests {
191189
fn test_visit_file_with_valid_file() {
192190
// With mocked tag
193191
let path = String::from("path/to/valid/file.mp3");
194-
let result = visit_file(path.clone(), |inner_path| {
192+
let result = visit_file(path.clone(), |_inner_path| {
195193
let mut tag = Tag::new();
196194
tag.set_artist("Artist");
197195
tag.set_title("Title");
@@ -225,7 +223,7 @@ mod tests {
225223
fn test_visit_file_with_no_tags() {
226224
// With mocked tag
227225
let path = String::from("path/to/invalid/file.mp3");
228-
let result = visit_file(path.clone(), |inner_path| {
226+
let result = visit_file(path.clone(), |_inner_path| {
229227
Err(id3::Error::new(id3::ErrorKind::NoTag, ""))
230228
});
231229

0 commit comments

Comments
 (0)