From 4a94265eae0827a602ec39b97d269d43899cc027 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Fri, 12 Jul 2024 21:59:44 +0200 Subject: [PATCH] Remove randomly generated example, run clippy. Fixes #6 --- Cargo.lock | 1 - Cargo.toml | 3 +-- src/cli/database_command.rs | 43 ++++++++++++++++++--------------- src/core/database_operations.rs | 3 +-- 4 files changed, 26 insertions(+), 24 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9494253..8622456 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -892,7 +892,6 @@ dependencies = [ "log", "nix", "prettytable", - "rand", "ratatui", "rpassword", "serde", diff --git a/Cargo.toml b/Cargo.toml index 2c082dd..b735edd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,7 +13,6 @@ itertools = "0.12.1" log = "0.4.21" nix = { version = "0.28.0", features = ["user"] } prettytable = "0.10.0" -rand = "0.8.5" ratatui = { version = "0.26.2", optional = true } rpassword = "7.3.1" serde = "1.0.198" @@ -33,4 +32,4 @@ path = "src/main.rs" [profile.release] strip = true lto = true -codegen-units = 1 \ No newline at end of file +codegen-units = 1 diff --git a/src/cli/database_command.rs b/src/cli/database_command.rs index 079ca46..23af865 100644 --- a/src/cli/database_command.rs +++ b/src/cli/database_command.rs @@ -3,7 +3,6 @@ use clap::Parser; use indoc::indoc; use itertools::Itertools; use prettytable::{Cell, Row, Table}; -use rand::prelude::*; use sqlx::{Connection, MySqlConnection}; use crate::core::{ @@ -357,29 +356,29 @@ fn parse_permission_data_from_editor(content: String) -> anyhow::Result