Skip to content

Commit 112d382

Browse files
author
Suh Donghwi
committed
chore: clippy fix & fmt
1 parent 2281497 commit 112d382

File tree

1 file changed

+2
-3
lines changed
  • crates/stylex-path-resolver/src/resolvers

1 file changed

+2
-3
lines changed

crates/stylex-path-resolver/src/resolvers/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ pub fn resolve_file_path(
4646
.unwrap();
4747

4848
if import_path_str.starts_with(".")
49-
&& let Ok(resolution) =
50-
resolver_without_aliases.resolve(source_directory_path, &import_path_str)
49+
&& let Ok(resolution) = resolver_without_aliases.resolve(source_directory_path, import_path_str)
5150
{
5251
return Ok(resolution.into_path_buf());
5352
}
5453

55-
match resolver_with_aliases.resolve(source_file_path, &import_path_str) {
54+
match resolver_with_aliases.resolve(source_file_path, import_path_str) {
5655
Ok(resolution) => Ok(resolution.into_path_buf()),
5756
Err(_) => Err(std::io::Error::new(
5857
std::io::ErrorKind::NotFound,

0 commit comments

Comments
 (0)