chore: apply clippy fixes (#3092)

This commit is contained in:
Fabian-Lars
2025-11-09 18:43:17 +01:00
committed by GitHub
parent 5cd7778723
commit 5438a5cd22
6 changed files with 11 additions and 32 deletions
+2 -6
View File
@@ -17,9 +17,11 @@ pub struct Config {
#[derive(Debug, PartialEq, Eq, Clone, Deserialize)]
#[serde(untagged, deny_unknown_fields)]
#[non_exhaustive]
#[derive(Default)]
pub enum ShellAllowlistOpen {
/// Shell open API allowlist is not defined by the user.
/// In this case we add the default validation regex (same as [`Self::Flag(true)`]).
#[default]
Unset,
/// If the shell open API should be enabled.
///
@@ -35,9 +37,3 @@ pub enum ShellAllowlistOpen {
/// that allow flag-like strings to pass validation. e.g. `--enable-debugging`, `-i`, `/R`.
Validate(String),
}
impl Default for ShellAllowlistOpen {
fn default() -> Self {
Self::Unset
}
}