Skip to content

Commit 5d480bb

Browse files
committed
Resolve clippy warnings
1 parent 71d8f6c commit 5d480bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

rewatch/src/build.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,12 @@ pub fn compile_one(
599599

600600
// Step 3: Mark only the target file as parse_dirty
601601
// This ensures we parse the latest version of the target file
602-
if let Some(module) = build_state.modules.get_mut(&target_module_name) {
603-
if let SourceType::SourceFile(source_file) = &mut module.source_type {
604-
source_file.implementation.parse_dirty = true;
605-
if let Some(interface) = &mut source_file.interface {
606-
interface.parse_dirty = true;
607-
}
602+
if let Some(module) = build_state.modules.get_mut(&target_module_name)
603+
&& let SourceType::SourceFile(source_file) = &mut module.source_type
604+
{
605+
source_file.implementation.parse_dirty = true;
606+
if let Some(interface) = &mut source_file.interface {
607+
interface.parse_dirty = true;
608608
}
609609
}
610610

0 commit comments

Comments
 (0)