mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
Tidy up blocks and imports in decks/mod.rs
This commit is contained in:
parent
a1617760d4
commit
9dac8e2b5f
1 changed files with 2 additions and 13 deletions
|
@ -20,17 +20,8 @@ pub use crate::backend_proto::{
|
||||||
Deck as DeckProto,
|
Deck as DeckProto,
|
||||||
};
|
};
|
||||||
use crate::{
|
use crate::{
|
||||||
backend_proto as pb,
|
backend_proto as pb, define_newtype, error::FilteredDeckError, markdown::render_markdown,
|
||||||
collection::Collection,
|
prelude::*, text::sanitize_html_no_images,
|
||||||
deckconf::DeckConfId,
|
|
||||||
define_newtype,
|
|
||||||
error::FilteredDeckError,
|
|
||||||
error::{AnkiError, Result},
|
|
||||||
markdown::render_markdown,
|
|
||||||
prelude::*,
|
|
||||||
text::sanitize_html_no_images,
|
|
||||||
timestamp::TimestampSecs,
|
|
||||||
types::Usn,
|
|
||||||
};
|
};
|
||||||
pub(crate) use counts::DueCounts;
|
pub(crate) use counts::DueCounts;
|
||||||
pub(crate) use name::{
|
pub(crate) use name::{
|
||||||
|
@ -173,9 +164,7 @@ impl Collection {
|
||||||
Ok(None)
|
Ok(None)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
impl Collection {
|
|
||||||
pub(crate) fn default_deck_is_empty(&self) -> Result<bool> {
|
pub(crate) fn default_deck_is_empty(&self) -> Result<bool> {
|
||||||
self.storage.deck_is_empty(DeckId(1))
|
self.storage.deck_is_empty(DeckId(1))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue