Skip to content

Commit 85e0cec

Browse files
committed
fix clippy utf8 path helper
1 parent dde55f7 commit 85e0cec

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ impl<Fs: FileSystem + Send + Sync> ResolverGeneric<Fs> {
800800
// enhanced-resolve: try file as alias
801801
let alias_specifier = path_to_str(cached_path.path());
802802
if let Some(path) = self
803-
.load_alias(cached_path, &alias_specifier, &self.options.alias, ctx)
803+
.load_alias(cached_path, alias_specifier, &self.options.alias, ctx)
804804
.await?
805805
{
806806
return Ok(Some(path));

src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::path::{Component, Path, PathBuf};
77

88
pub const SLASH_START: &[char; 2] = &['/', '\\'];
99

10-
pub(crate) fn path_to_str(path: &Path) -> &str {
10+
pub fn path_to_str(path: &Path) -> &str {
1111
path.to_str().expect("path should be UTF-8")
1212
}
1313

0 commit comments

Comments
 (0)