Public Access
fix: remove unused imports and add #[allow(dead_code)] to fix clippy -D warnings
This commit is contained in:
@@ -3,6 +3,7 @@ use std::fs;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Config {
|
||||
pub database_path: String,
|
||||
pub bind: String,
|
||||
|
||||
@@ -3,6 +3,7 @@ mod db;
|
||||
mod models;
|
||||
mod routes;
|
||||
|
||||
|
||||
use std::sync::{Arc, Mutex};
|
||||
use rusqlite::Connection;
|
||||
use config::Config;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Action {
|
||||
pub id: String,
|
||||
pub chain_id: Option<String>,
|
||||
@@ -16,6 +17,7 @@ pub struct Action {
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[allow(dead_code)]
|
||||
pub struct SubmitAction {
|
||||
pub description: String,
|
||||
pub command: String,
|
||||
@@ -27,6 +29,7 @@ pub struct SubmitAction {
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Serialize)]
|
||||
#[allow(dead_code)]
|
||||
pub struct ActionResult {
|
||||
pub id: String,
|
||||
pub status: String,
|
||||
@@ -34,6 +37,7 @@ pub struct ActionResult {
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[allow(dead_code)]
|
||||
pub struct LoginForm {
|
||||
pub username: String,
|
||||
pub password: String,
|
||||
|
||||
Reference in New Issue
Block a user