Skip to content

Commit 74e6d42

Browse files
author
Grant Wuerker
committed
ci fix
1 parent 36dae9b commit 74e6d42

File tree

15 files changed

+26
-210
lines changed

15 files changed

+26
-210
lines changed

Cargo.lock

Lines changed: 3 additions & 162 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/bench/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ criterion = "0.5"
88
walkdir = "2.4"
99

1010
[dependencies]
11-
hir-analysis.workspace = true
1211
driver.workspace = true
1312
parser.workspace = true
1413
common.workspace = true

crates/common/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ serde-semver.workspace = true
1717
smol_str.workspace = true
1818
rust-embed = { version = "8.5.0", features = ["debug-embed"] }
1919
toml = "0.8.8"
20-
serde = { version = "1.0", features = ["derive"] }
21-
thiserror = "1.0"
2220
tracing.workspace = true
2321
petgraph.workspace = true
2422

crates/common/src/urlext.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -70,22 +70,6 @@ impl UrlExt for Url {
7070
}
7171
}
7272

73-
#[cfg(not(target_arch = "wasm32"))]
74-
pub fn canonical_url(path: &Utf8PathBuf) -> Result<Url, UrlError> {
75-
let canonical_path = path
76-
.canonicalize_utf8()
77-
.map_err(|_| UrlError::CanonicalizationError)?;
78-
let url =
79-
Url::from_directory_path(canonical_path.as_str()).map_err(|_| UrlError::InvalidPath)?;
80-
url.directory().ok_or(UrlError::InvalidPath)
81-
}
82-
83-
#[cfg(target_arch = "wasm32")]
84-
pub fn canonical_url(_path: &Utf8PathBuf) -> Result<Url, UrlError> {
85-
// Filesystem operations are not available in WASM
86-
Err(UrlError::CanonicalizationError)
87-
}
88-
8973
#[cfg(test)]
9074
mod tests {
9175
use super::*;

crates/driver/Cargo.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,4 @@ hir.workspace = true
2121
hir-analysis.workspace = true
2222
resolver.workspace = true
2323
url.workspace = true
24-
smol_str.workspace = true
25-
test-utils.workspace = true
2624
tracing.workspace = true

0 commit comments

Comments
 (0)