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)]
|
#[allow(dead_code)]
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub database_path: String,
|
pub database_path: String,
|
||||||
pub bind: String,
|
pub bind: String,
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ mod db;
|
|||||||
mod models;
|
mod models;
|
||||||
mod routes;
|
mod routes;
|
||||||
|
|
||||||
|
|
||||||
use std::sync::{Arc, Mutex};
|
use std::sync::{Arc, Mutex};
|
||||||
use rusqlite::Connection;
|
use rusqlite::Connection;
|
||||||
use config::Config;
|
use config::Config;
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct Action {
|
pub struct Action {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub chain_id: Option<String>,
|
pub chain_id: Option<String>,
|
||||||
@@ -16,6 +17,7 @@ pub struct Action {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct SubmitAction {
|
pub struct SubmitAction {
|
||||||
pub description: String,
|
pub description: String,
|
||||||
pub command: String,
|
pub command: String,
|
||||||
@@ -27,6 +29,7 @@ pub struct SubmitAction {
|
|||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct ActionResult {
|
pub struct ActionResult {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
pub status: String,
|
pub status: String,
|
||||||
@@ -34,6 +37,7 @@ pub struct ActionResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
|
#[allow(dead_code)]
|
||||||
pub struct LoginForm {
|
pub struct LoginForm {
|
||||||
pub username: String,
|
pub username: String,
|
||||||
pub password: String,
|
pub password: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user