chore: cargo fix all, remove remaining warning

This commit is contained in:
Kat Inskip 2025-10-27 04:40:37 -07:00
parent f8a5b1595f
commit 03daad2573
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,6 @@ use {
env, env,
fs::{read_to_string, File}, fs::{read_to_string, File},
io::Write, io::Write,
os::unix::ffi::OsStrExt,
}, },
}; };
@ -41,6 +40,8 @@ impl AdapterConfig {
} }
} }
} }
// It's unnecessary, but it's cute. :p
#[allow(dead_code)]
pub fn save(&self) -> anyhow::Result<()> { pub fn save(&self) -> anyhow::Result<()> {
let xdg_dirs = xdg::BaseDirectories::with_prefix(CFG_DIR); let xdg_dirs = xdg::BaseDirectories::with_prefix(CFG_DIR);
let p = xdg_dirs.place_config_file(Self::FNA)?; let p = xdg_dirs.place_config_file(Self::FNA)?;

View file

@ -8,7 +8,6 @@ use {
clap::{Parser, ValueEnum}, clap::{Parser, ValueEnum},
std::{ std::{
io::{pipe, Write}, io::{pipe, Write},
os::unix::ffi::OsStrExt,
process::{Command, Stdio}, process::{Command, Stdio},
}, },
}; };