forked from projectmoon/tenebrous-dicebot
Remove remaining warnings.
This commit is contained in:
parent
4de273db4a
commit
059538b95d
|
@ -1,7 +1,6 @@
|
|||
use async_trait::async_trait;
|
||||
use errors::DataError;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
use std::str::FromStr;
|
||||
|
||||
use crate::models::RoomInfo;
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use barrel::backend::Sqlite;
|
||||
use barrel::{types, types::Type, Migration};
|
||||
use barrel::{types, Migration};
|
||||
|
||||
pub fn migration() -> String {
|
||||
let mut m = Migration::new();
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use barrel::backend::Sqlite;
|
||||
use barrel::{types, types::Type, Migration};
|
||||
use barrel::{types, Migration};
|
||||
|
||||
pub fn migration() -> String {
|
||||
let mut m = Migration::new();
|
||||
|
|
|
@ -35,7 +35,6 @@ impl DbState for Database {
|
|||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::db::sqlite::Database;
|
||||
use crate::db::DbState;
|
||||
|
||||
|
|
|
@ -3,11 +3,6 @@ use crate::db::{errors::DataError, Variables};
|
|||
use async_trait::async_trait;
|
||||
use std::collections::HashMap;
|
||||
|
||||
struct UserVariableRow {
|
||||
key: String,
|
||||
value: i32,
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl Variables for Database {
|
||||
async fn get_user_variables(
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
use crate::db::errors::DataError;
|
||||
use crate::db::Rooms;
|
||||
use crate::error::BotError;
|
||||
use crate::matrix;
|
||||
use crate::models::RoomInfo;
|
||||
use futures::stream::{self, StreamExt, TryStreamExt};
|
||||
use futures::stream::{self, StreamExt};
|
||||
use matrix_sdk::{self, identifiers::RoomId, Client};
|
||||
|
||||
/// Record the information about a room, including users in it.
|
||||
|
|
Loading…
Reference in New Issue