Skip to content

Commit 38d56cd

Browse files
committed
fmt
1 parent 257033e commit 38d56cd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

rewatch/src/lsp/queue/file_build.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,10 @@ fn modules_with_cmi_changed(
248248
pre_cmi_hashes: &HashMap<String, Option<blake3::Hash>>,
249249
) -> Vec<String> {
250250
for (name, old_cmi) in pre_cmi_hashes {
251-
let new_cmi = build_state
252-
.build_state
253-
.modules
254-
.get(name)
255-
.and_then(|m| match m {
256-
Module::SourceFile(sf) => sf.compilation_stage().cmi_hash(),
257-
_ => None,
258-
});
251+
let new_cmi = build_state.build_state.modules.get(name).and_then(|m| match m {
252+
Module::SourceFile(sf) => sf.compilation_stage().cmi_hash(),
253+
_ => None,
254+
});
259255
if let (Some(old), Some(new)) = (old_cmi, new_cmi)
260256
&& old == &new
261257
{

0 commit comments

Comments
 (0)