Fix lints
All checks were successful
Cargo CI / Lint (pull_request) Successful in 56s
Cargo CI / Build and Test (pull_request) Successful in 1m13s

This commit is contained in:
Wojciech Kozlowski 2024-01-07 11:04:54 +01:00
parent 2d25b15f3c
commit 031e634a6c
3 changed files with 7 additions and 4 deletions

View File

@ -89,7 +89,7 @@ impl From<std::io::Error> for SaveError {
mod tests {
use std::io;
use super::{LoadError, SaveError, NoDatabase, IDatabase};
use super::{IDatabase, LoadError, NoDatabase, SaveError};
#[test]
#[should_panic]

View File

@ -616,7 +616,10 @@ mod tests {
use mockall::predicate;
use once_cell::sync::Lazy;
use crate::{database::{MockIDatabase, NoDatabase}, library::{MockILibrary, NoLibrary}};
use crate::{
database::{MockIDatabase, NoDatabase},
library::{MockILibrary, NoLibrary},
};
use super::*;

View File

@ -21,7 +21,7 @@ pub trait ILibrary {
pub struct NoLibrary {}
impl ILibrary for NoLibrary {
fn list(&mut self, _query: &Query) -> Result<Vec<Item>,Error> {
fn list(&mut self, _query: &Query) -> Result<Vec<Item>, Error> {
panic!()
}
}
@ -136,7 +136,7 @@ impl From<Utf8Error> for Error {
mod tests {
use std::io;
use super::{Error, Field, Query, NoLibrary, ILibrary};
use super::{Error, Field, ILibrary, NoLibrary, Query};
#[test]
#[should_panic]