fix: clippy
This commit is contained in:
1 parent
56882b97e5
commit
71df8c790f
1 file changed
+11
-16
@@ -5,22 +5,6 @@ use std::sync::LazyLock;
|
|||||||
use std::{fs, path::PathBuf, sync::Arc};
|
use std::{fs, path::PathBuf, sync::Arc};
|
||||||
use tracing::{error, trace, warn};
|
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.
|
/// Describes cli settings from project or global level.
|
||||||
/// The order of priority goes:
|
/// The order of priority goes:
|
||||||
/// 1. CLI Flags/Arguments
|
/// 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> {
|
fn default_wsl_file_poll_interval() -> Option<u16> {
|
||||||
Some(2)
|
Some(2)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user