Skip to content

Commit

Permalink
Cleanup code, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Oct 30, 2023
1 parent 4c88e09 commit ccb7c5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/scanner/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,6 @@ fn main(mut cx: ModuleContext) -> NeonResult<()> {

#[cfg(test)]
mod tests {
use std::io;

use super::*;

#[test]
Expand All @@ -191,7 +189,7 @@ mod tests {
fn test_visit_file_with_valid_file() {
// With mocked tag
let path = String::from("path/to/valid/file.mp3");
let result = visit_file(path.clone(), |inner_path| {
let result = visit_file(path.clone(), |_inner_path| {
let mut tag = Tag::new();
tag.set_artist("Artist");
tag.set_title("Title");
Expand Down Expand Up @@ -225,7 +223,7 @@ mod tests {
fn test_visit_file_with_no_tags() {
// With mocked tag
let path = String::from("path/to/invalid/file.mp3");
let result = visit_file(path.clone(), |inner_path| {
let result = visit_file(path.clone(), |_inner_path| {
Err(id3::Error::new(id3::ErrorKind::NoTag, ""))
});

Expand Down

0 comments on commit ccb7c5d

Please sign in to comment.