Fix lints
This commit is contained in:
parent
2d25b15f3c
commit
031e634a6c
@ -89,7 +89,7 @@ impl From<std::io::Error> for SaveError {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
||||||
use super::{LoadError, SaveError, NoDatabase, IDatabase};
|
use super::{IDatabase, LoadError, NoDatabase, SaveError};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic]
|
#[should_panic]
|
||||||
|
@ -616,7 +616,10 @@ mod tests {
|
|||||||
use mockall::predicate;
|
use mockall::predicate;
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
|
|
||||||
use crate::{database::{MockIDatabase, NoDatabase}, library::{MockILibrary, NoLibrary}};
|
use crate::{
|
||||||
|
database::{MockIDatabase, NoDatabase},
|
||||||
|
library::{MockILibrary, NoLibrary},
|
||||||
|
};
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ pub trait ILibrary {
|
|||||||
pub struct NoLibrary {}
|
pub struct NoLibrary {}
|
||||||
|
|
||||||
impl ILibrary for 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!()
|
panic!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -136,7 +136,7 @@ impl From<Utf8Error> for Error {
|
|||||||
mod tests {
|
mod tests {
|
||||||
use std::io;
|
use std::io;
|
||||||
|
|
||||||
use super::{Error, Field, Query, NoLibrary, ILibrary};
|
use super::{Error, Field, ILibrary, NoLibrary, Query};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[should_panic]
|
#[should_panic]
|
||||||
|
Loading…
Reference in New Issue
Block a user