Public Access
fix: satisfy clippy -D warnings so CI can pass
CI runs `cargo clippy -- -D warnings`, which already failed on main with four errors predating this branch: duplicated attribute src/models.rs, src/config.rs literal with an empty format src/cli_main.rs (x2) Both structs carried #[allow(dead_code)] twice; dropped the duplicate. The println! calls moved the literal into the format string as clippy suggested. No behaviour change -- output is byte-identical. Kept separate from the feature commit so it can be dropped or landed on its own.
This commit is contained in:
+2
-2
@@ -65,7 +65,7 @@ fn main() {
|
||||
if users.is_empty() {
|
||||
println!("No users.");
|
||||
} else {
|
||||
println!("{:<20} {}", "Username", "Created");
|
||||
println!("{:<20} Created", "Username");
|
||||
println!("{}", "-".repeat(40));
|
||||
for (u, c) in users {
|
||||
println!("{:<20} {}", u, c);
|
||||
@@ -115,7 +115,7 @@ fn main() {
|
||||
if keys.is_empty() {
|
||||
println!("No API keys.");
|
||||
} else {
|
||||
println!("{:<20} {}", "Label", "Created");
|
||||
println!("{:<20} Created", "Label");
|
||||
println!("{}", "-".repeat(40));
|
||||
for (l, c) in keys {
|
||||
println!("{:<20} {}", l, c);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
use serde::Deserialize;
|
||||
use std::fs;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
#[allow(dead_code)]
|
||||
pub struct Config {
|
||||
|
||||
@@ -27,7 +27,6 @@ pub struct SubmitAction {
|
||||
pub run_as: Option<String>,
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug, Serialize)]
|
||||
#[allow(dead_code)]
|
||||
pub struct ActionResult {
|
||||
|
||||
Reference in New Issue
Block a user