Make database and library optional #86
@ -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]
|
||||
|
@ -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::*;
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user