fix tests

This commit is contained in:
Clément DOUIN 2022-06-05 17:14:57 +02:00
parent 8f667def0c
commit 3c5379b24d
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -33,12 +33,15 @@ pub fn list<'a, P: PrinterService, B: Backend<'a> + ?Sized>(
#[cfg(test)]
mod tests {
use himalaya_lib::mbox::{Mbox, Mboxes};
use himalaya_lib::{
mbox::{Mbox, Mboxes},
msg::Envelopes,
};
use std::{fmt::Debug, io};
use termcolor::ColorSpec;
use crate::{
msg::{Envelopes, Msg},
msg::Msg,
output::{Print, PrintTable, WriteColor},
};
@ -133,7 +136,7 @@ mod tests {
fn del_mbox(&mut self, _: &str) -> Result<()> {
unimplemented!();
}
fn get_envelopes(&mut self, _: &str, _: usize, _: usize) -> Result<Box<dyn Envelopes>> {
fn get_envelopes(&mut self, _: &str, _: usize, _: usize) -> Result<Envelopes> {
unimplemented!()
}
fn search_envelopes(
@ -143,7 +146,7 @@ mod tests {
_: &str,
_: usize,
_: usize,
) -> Result<Box<dyn Envelopes>> {
) -> Result<Envelopes> {
unimplemented!()
}
fn add_msg(&mut self, _: &str, _: &[u8], _: &str) -> Result<String> {