chore(linter): remove unused "timing" variable

This commit is contained in:
Boshen 2024-04-22 11:08:50 +08:00
parent ae72be1964
commit 023c1acfd0
No known key found for this signature in database
GPG key ID: 234DA6A7079C6801

View file

@ -24,7 +24,6 @@ pub struct LintOptions {
pub filter: Vec<(AllowWarnDeny, String)>,
pub config_path: Option<PathBuf>,
pub fix: bool,
pub timing: bool,
pub import_plugin: bool,
pub jsdoc_plugin: bool,
pub jest_plugin: bool,
@ -39,7 +38,6 @@ impl Default for LintOptions {
filter: vec![(AllowWarnDeny::Deny, String::from("correctness"))],
config_path: None,
fix: false,
timing: false,
import_plugin: false,
jsdoc_plugin: false,
jest_plugin: false,
@ -71,12 +69,6 @@ impl LintOptions {
self
}
#[must_use]
pub fn with_timing(mut self, yes: bool) -> Self {
self.timing = yes;
self
}
#[must_use]
pub fn with_import_plugin(mut self, yes: bool) -> Self {
self.import_plugin = yes;