mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-22 17:44:22 +00:00
Remove unused imports
This commit is contained in:
parent
8cc200b6f4
commit
ad813dfd6c
2 changed files with 2 additions and 7 deletions
|
@ -84,13 +84,8 @@ use patched_porobot::data::corebundle::CoreBundle;
|
|||
use patched_porobot::data::setbundle::SetBundle;
|
||||
use patched_porobot::data::corebundle::globals::LocalizedGlobalsIndexes;
|
||||
use patched_porobot::search::cardsearch::CardSearchEngine;
|
||||
use patched_porobot::telegram::inline::card_to_inlinequeryresult;
|
||||
use patched_porobot::telegram::handler::{inline_query_handler, message_handler};
|
||||
use teloxide::payloads::{AnswerInlineQuery, SendMessage};
|
||||
use teloxide::requests::JsonRequest;
|
||||
use teloxide::types::{Recipient, ParseMode};
|
||||
use teloxide::prelude::*;
|
||||
use itertools::Itertools;
|
||||
|
||||
|
||||
#[doc(hidden)]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! Module defining a search engine to find [Card]s.
|
||||
|
||||
use tantivy::{Document, Index, IndexReader, IndexWriter, Score};
|
||||
use tantivy::{Document, Index, IndexReader, IndexWriter};
|
||||
use tantivy::collector::TopDocs;
|
||||
use tantivy::query::{QueryParser, QueryParserError};
|
||||
use tantivy::schema::{Field, NumericOptions, Schema, TextOptions};
|
||||
|
@ -113,7 +113,7 @@ impl CardSearchEngine {
|
|||
/// | `name` | [text](Self::options_text) | The [name of the card](Card::name). |
|
||||
/// | `type` | [keyword](Self::options_keyword) | The [type of the card](Card::type), such as `Unit`. |
|
||||
/// | `set` | [keyword](Self::options_keyword) | The [set the card belongs to](Card::set), such as `Beyond the Bandlewood`. |
|
||||
/// | `rarity` | [keyword](Self::options_keyword) | The [rarity of the card](patched_porobot::data::setbundle::card::Card::rarity), such as `Rare`, or `Champion`. |
|
||||
/// | `rarity` | [keyword](Self::options_keyword) | The [rarity of the card](Card::rarity), such as `Rare`, or `Champion`. |
|
||||
/// | `collectible` | [number](Self::options_number) | `1` if the [card is collectible](Card::collectible), `0` otherwise. |
|
||||
/// | `regions` | [keyword](Self::options_keyword) | The [regions of the card](Card::regions), separated by spaces. |
|
||||
/// | `attack` | [number](Self::options_number) | The [attack of the unit](Card::attack); always `0` for non-units. |
|
||||
|
|
Loading…
Reference in a new issue