chore: edition 2024

This commit is contained in:
Lucas Nogueira
2026-09-26 15:36:22 -03:00
parent b517cc7e85
commit 3d8a3c877b
100 changed files with 276 additions and 253 deletions
+1 -1
View File
@@ -12,8 +12,8 @@
)]
use tauri::{
plugin::{Builder, PluginApi, TauriPlugin},
AppHandle, Manager, Runtime, State,
plugin::{Builder, PluginApi, TauriPlugin},
};
mod config;
+3 -4
View File
@@ -3,9 +3,9 @@
// SPDX-License-Identifier: MIT
use clap::{
Arg as ClapArg, ArgAction, ArgMatches, Command,
builder::{PossibleValue, PossibleValuesParser},
error::ErrorKind,
Arg as ClapArg, ArgAction, ArgMatches, Command,
};
use serde::Serialize;
use serde_json::Value;
@@ -134,8 +134,8 @@ fn get_matches_internal(config: &Config, matches: &ArgMatches) -> Matches {
let mut cli_matches = Matches::default();
map_matches(config, matches, &mut cli_matches);
if let Some((subcommand_name, subcommand_matches)) = matches.subcommand() {
if let Some(subcommand_config) = config
if let Some((subcommand_name, subcommand_matches)) = matches.subcommand()
&& let Some(subcommand_config) = config
.subcommands
.as_ref()
.and_then(|s| s.get(subcommand_name))
@@ -145,7 +145,6 @@ fn get_matches_internal(config: &Config, matches: &ArgMatches) -> Matches {
get_matches_internal(subcommand_config, subcommand_matches),
);
}
}
cli_matches
}