Remove some imports in decks which are in prelude

This commit is contained in:
RumovZ 2021-04-15 20:07:16 +02:00
parent 3138fccaca
commit 5931631d76
4 changed files with 6 additions and 17 deletions

View File

@ -1,8 +1,6 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
use crate::{
backend_proto as pb, collection::Collection, decks::DeckId, error::Result, prelude::*,
};
use crate::{backend_proto as pb, prelude::*};
use std::collections::HashMap;
#[derive(Debug)]

View File

@ -3,7 +3,7 @@
use strum::IntoEnumIterator;
use super::{DeckCommon, DeckKind, FilteredDeck, FilteredSearchOrder, FilteredSearchTerm};
use super::{DeckCommon, FilteredDeck, FilteredSearchOrder, FilteredSearchTerm};
use crate::prelude::*;
impl Deck {

View File

@ -3,13 +3,12 @@
use super::DeckId;
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,
};
use crate::{
prelude::*,
serde::{default_on_invalid, deserialize_bool_from_anything, deserialize_number_from_string},
timestamp::TimestampSecs,
types::Usn,
};
use serde_derive::{Deserialize, Serialize};

View File

@ -1,18 +1,10 @@
// Copyright: Ankitects Pty Ltd and contributors
// 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;
use crate::{
backend_proto::DeckTreeNode,
collection::Collection,
config::{BoolKey, SchedulerVersion},
deckconf::{DeckConf, DeckConfId},
decks::DeckId,
error::Result,
ops::OpOutput,
timestamp::TimestampSecs,
undo::Op,
backend_proto::DeckTreeNode, config::SchedulerVersion, ops::OpOutput, prelude::*, undo::Op,
};
use serde_tuple::Serialize_tuple;
use std::{