We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14483a6 commit a33c598Copy full SHA for a33c598
internal/compiler/typeloader.rs
@@ -1655,9 +1655,14 @@ fn get_native_style(all_loaded_files: &mut std::collections::BTreeSet<PathBuf>)
1655
)
1656
})
1657
});
1658
+
1659
if let Some(style) = target_path.and_then(|target_path| {
- all_loaded_files.insert(target_path.clone());
1660
- std::fs::read_to_string(target_path).map(|style| style.trim().into()).ok()
+ std::fs::read_to_string(&target_path)
1661
+ .map(|style| {
1662
+ all_loaded_files.insert(target_path);
1663
+ style.trim().into()
1664
+ })
1665
+ .ok()
1666
}) {
1667
return style;
1668
}
0 commit comments