Skip to content

Commit 5dbcd4e

Browse files
committed
style: suppress unused_mut warning for hooks vector initialization
1 parent 0847063 commit 5dbcd4e

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

crates/tinymist/src/project.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ impl ServerState {
189189
stats: Arc::default(),
190190
});
191191

192+
#[allow(unused_mut)]
192193
let mut hooks: Vec<Box<dyn CompileHook + Send + Sync>> = vec![
193194
Box::new(DiagHook::new(analysis.clone(), editor_tx.clone())),
194195
Box::new(LintHook::new(analysis.clone(), editor_tx.clone())),

crates/tinymist/src/tool/project.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ where
8484
let export_task =
8585
crate::task::ExportTask::new(handle, Some(editor_tx.clone()), opts.config.export());
8686

87+
#[allow(unused_mut)]
8788
let mut hooks: Vec<Box<dyn CompileHook + Send + Sync>> = vec![
8889
Box::new(DiagHook::new(analysis.clone(), editor_tx.clone())),
8990
Box::new(LintHook::new(analysis.clone(), editor_tx.clone())),

0 commit comments

Comments
 (0)