Remove remaining warnings.

This commit is contained in:
projectmoon 2021-05-21 14:14:03 +00:00
parent 4de273db4a
commit 059538b95d
6 changed files with 4 additions and 11 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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();

View File

@ -35,7 +35,6 @@ impl DbState for Database {
#[cfg(test)]
mod tests {
use super::*;
use crate::db::sqlite::Database;
use crate::db::DbState;

View File

@ -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(

View File

@ -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.