mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-11-22 12:34:39 +00:00
fix: clippy error in rust 1.84 and deny warnings in CI (#1178)
* fix: clippy error in 1.84 * fix: deny warnings * fix: clippy warnings and doc errors * fix: warnings * fix: warnings * fix: warnings * fix: compile error
This commit is contained in:
parent
31b22d9333
commit
448ce484d8
12 changed files with 30 additions and 30 deletions
|
|
@ -238,7 +238,7 @@ impl RenameFileWorker<'_> {
|
|||
fn rename_module_path(&mut self, span: Span, r: &RefExpr, src: &Source) -> Option<TextEdit> {
|
||||
let importing = r.root.as_ref()?.file_id();
|
||||
|
||||
if importing.map_or(true, |fid| fid != self.def_fid) {
|
||||
if importing != Some(self.def_fid) {
|
||||
return None;
|
||||
}
|
||||
crate::log_debug_ct!("import: {span:?} -> {importing:?} v.s. {:?}", self.def_fid);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue