fix: clippy errors with stable toolchain and default features (#1553)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Tunglies
2025-11-07 20:08:39 +08:00
committed by GitHub
parent 89cc75f674
commit 55b93454dc
9 changed files with 32 additions and 35 deletions
+1 -1
View File
@@ -1212,7 +1212,7 @@ async fn run_main(cli: Cli) -> anyhow::Result<()> {
if let Some(config_files) = cli.config_file {
let config_file_count = config_files.len();
for config_file in config_files {
let mut cfg = if config_file == PathBuf::from("-") {
let mut cfg = if config_file.as_os_str() == "-" {
let mut stdin = String::new();
_ = tokio::io::stdin().read_to_string(&mut stdin).await?;
TomlConfigLoader::new_from_str(stdin.as_str())