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:
2026-08-13 03:07:34 -07:00
parent bfb10b9ab2
commit 90ff337f7c
3 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -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
View File
@@ -1,7 +1,6 @@
use serde::Deserialize;
use std::fs;
#[allow(dead_code)]
#[derive(Debug, Deserialize, Clone)]
#[allow(dead_code)]
pub struct Config {
-1
View File
@@ -27,7 +27,6 @@ pub struct SubmitAction {
pub run_as: Option<String>,
}
#[allow(dead_code)]
#[derive(Debug, Serialize)]
#[allow(dead_code)]
pub struct ActionResult {