fix: clippy

This commit is contained in:
Jonathan Kelley committed 2026-04-07 18:48:04 -07:00
1 parent 56882b97e5
commit 71df8c790f
1 file changed
+11 -16
+11 -16
View File
@@ -5,22 +5,6 @@ use std::sync::LazyLock;
use std::{fs, path::PathBuf, sync::Arc};
use tracing::{error, trace, warn};
/// Supported editors for debug sessions
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, clap::ValueEnum)]
#[serde(rename_all = "kebab-case")]
pub(crate) enum SupportedEditor {
/// Visual Studio Code
Vscode,
/// Cursor editor
Cursor,
}
impl Default for SupportedEditor {
fn default() -> Self {
SupportedEditor::Vscode
}
}
/// Describes cli settings from project or global level.
/// The order of priority goes:
/// 1. CLI Flags/Arguments
@@ -187,6 +171,17 @@ impl CliSettings {
}
}
/// Supported editors for debug sessions
#[derive(Default, Debug, Clone, Copy, Serialize, Deserialize, PartialEq, Eq, clap::ValueEnum)]
#[serde(rename_all = "kebab-case")]
pub(crate) enum SupportedEditor {
/// Visual Studio Code
#[default]
Vscode,
/// Cursor editor
Cursor,
}
fn default_wsl_file_poll_interval() -> Option<u16> {
Some(2)
}