Skip to content

Commit

Permalink
refactor(services/importer): apply clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Nov 27, 2024
1 parent aeb25ed commit 3eefcab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crates/services/importer/src/audiobookshelf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ where
match &metadata.isbn {
Some(isbn) => match utils::get_identifier_from_isbn(
isbn,
&google_books_service,
&open_library_service,
google_books_service,
open_library_service,
)
.await
{
Expand Down
2 changes: 1 addition & 1 deletion crates/services/importer/src/goodreads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pub async fn import(
continue;
}
let Some((identifier, source)) =
utils::get_identifier_from_isbn(&isbn, &google_books_service, &open_library_service)
utils::get_identifier_from_isbn(&isbn, google_books_service, open_library_service)
.await
else {
failed_items.push(ImportFailedItem {
Expand Down
4 changes: 2 additions & 2 deletions crates/services/importer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ pub mod utils {
) -> Option<(String, MediaSource)> {
let mut identifier = None;
let mut source = MediaSource::GoogleBooks;
if let Some(id) = google_books_service.id_from_isbn(&isbn).await {
if let Some(id) = google_books_service.id_from_isbn(isbn).await {
identifier = Some(id);
} else if let Some(id) = open_library_service.id_from_isbn(&isbn).await {
} else if let Some(id) = open_library_service.id_from_isbn(isbn).await {
identifier = Some(id);
source = MediaSource::Openlibrary;
}
Expand Down
2 changes: 1 addition & 1 deletion crates/services/importer/src/story_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub async fn import(
continue;
};
let Some((identifier, source)) =
utils::get_identifier_from_isbn(&isbn, &google_books_service, &open_library_service)
utils::get_identifier_from_isbn(&isbn, google_books_service, open_library_service)
.await
else {
failed_items.push(ImportFailedItem {
Expand Down

0 comments on commit 3eefcab

Please sign in to comment.