Clean up warnings

This commit is contained in:
pjht 2024-10-18 20:27:49 -05:00
parent 8f82dd078d
commit 51f40cb0fb
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E
4 changed files with 2 additions and 3 deletions

View File

@ -1,7 +1,7 @@
use crate::components::Nav;
use common::{LoggedInResponse, LoginRequest, LoginResponse};
use gloo::{
console::{error, log},
console::error,
history::{BrowserHistory, History},
net::http::Request,
};

View File

@ -11,7 +11,6 @@ use clap::{Parser, Subcommand};
use diesel::prelude::*;
use models::NewUser;
use schema::users;
use std::io::{self, Write};
use std::net::{IpAddr, Ipv6Addr, SocketAddr};
use std::path::PathBuf;
use std::str::FromStr;

View File

@ -45,6 +45,7 @@ pub struct NewMessage<'a> {
#[derive(Queryable, Selectable, Debug, Clone)]
#[diesel(table_name = messages)]
#[diesel(check_for_backend(diesel::sqlite::Sqlite))]
#[allow(unused)]
pub struct Message {
pub id: i32,
pub message: String,

View File

@ -25,7 +25,6 @@ use tokio::sync::Mutex;
use tower::{ServiceBuilder, ServiceExt};
use tower_http::services::ServeDir;
use tower_http::trace::TraceLayer;
use tower_sessions::cookie::Key;
use tower_sessions::{Expiry, MemoryStore, SessionManagerLayer};
use tracing::{debug, warn};