Remove some imports in decks which are in prelude
This commit is contained in:
parent
3138fccaca
commit
5931631d76
@ -1,8 +1,6 @@
|
|||||||
// Copyright: Ankitects Pty Ltd and contributors
|
// Copyright: Ankitects Pty Ltd and contributors
|
||||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
use crate::{
|
use crate::{backend_proto as pb, prelude::*};
|
||||||
backend_proto as pb, collection::Collection, decks::DeckId, error::Result, prelude::*,
|
|
||||||
};
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
use strum::IntoEnumIterator;
|
use strum::IntoEnumIterator;
|
||||||
|
|
||||||
use super::{DeckCommon, DeckKind, FilteredDeck, FilteredSearchOrder, FilteredSearchTerm};
|
use super::{DeckCommon, FilteredDeck, FilteredSearchOrder, FilteredSearchTerm};
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
|
||||||
impl Deck {
|
impl Deck {
|
||||||
|
@ -3,13 +3,12 @@
|
|||||||
|
|
||||||
use super::DeckId;
|
use super::DeckId;
|
||||||
use super::{
|
use super::{
|
||||||
human_deck_name_to_native, native_deck_name_to_human, Deck, DeckCommon, DeckKind, FilteredDeck,
|
human_deck_name_to_native, native_deck_name_to_human, DeckCommon, FilteredDeck,
|
||||||
FilteredSearchTerm, NormalDeck,
|
FilteredSearchTerm, NormalDeck,
|
||||||
};
|
};
|
||||||
use crate::{
|
use crate::{
|
||||||
|
prelude::*,
|
||||||
serde::{default_on_invalid, deserialize_bool_from_anything, deserialize_number_from_string},
|
serde::{default_on_invalid, deserialize_bool_from_anything, deserialize_number_from_string},
|
||||||
timestamp::TimestampSecs,
|
|
||||||
types::Usn,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
use serde_derive::{Deserialize, Serialize};
|
use serde_derive::{Deserialize, Serialize};
|
||||||
|
@ -1,18 +1,10 @@
|
|||||||
// Copyright: Ankitects Pty Ltd and contributors
|
// Copyright: Ankitects Pty Ltd and contributors
|
||||||
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||||
|
|
||||||
use super::{Deck, DeckKind, DueCounts};
|
use super::DueCounts;
|
||||||
pub use crate::backend_proto::set_deck_collapsed_in::Scope as DeckCollapseScope;
|
pub use crate::backend_proto::set_deck_collapsed_in::Scope as DeckCollapseScope;
|
||||||
use crate::{
|
use crate::{
|
||||||
backend_proto::DeckTreeNode,
|
backend_proto::DeckTreeNode, config::SchedulerVersion, ops::OpOutput, prelude::*, undo::Op,
|
||||||
collection::Collection,
|
|
||||||
config::{BoolKey, SchedulerVersion},
|
|
||||||
deckconf::{DeckConf, DeckConfId},
|
|
||||||
decks::DeckId,
|
|
||||||
error::Result,
|
|
||||||
ops::OpOutput,
|
|
||||||
timestamp::TimestampSecs,
|
|
||||||
undo::Op,
|
|
||||||
};
|
};
|
||||||
use serde_tuple::Serialize_tuple;
|
use serde_tuple::Serialize_tuple;
|
||||||
use std::{
|
use std::{
|
||||||
|
Loading…
Reference in New Issue
Block a user