Skip to content

Commit 7a04410

Browse files
committed
use .to_string() instead of format!(...)
1 parent 739673c commit 7a04410

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/codebook-lsp/src/lsp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,12 +261,12 @@ impl LanguageServer for Backend {
261261
}));
262262
}
263263
actions.push(CodeActionOrCommand::CodeAction(CodeAction {
264-
title: format!("Add current file to ignore list"),
264+
title: "Add current file to ignore list".to_string(),
265265
kind: Some(CodeActionKind::QUICKFIX),
266266
diagnostics: None,
267267
edit: None,
268268
command: Some(Command {
269-
title: format!("Add current file to ignore list"),
269+
title: "Add current file to ignore list".to_string(),
270270
command: CodebookCommand::IgnoreFile.into(),
271271
arguments: Some(vec![params.text_document.uri.to_string().into()]),
272272
}),

0 commit comments

Comments
 (0)