Skip to content

Commit 0ff3213

Browse files
committed
chore: add trim to DepSec
1 parent f99f1af commit 0ff3213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

forc-pkg/src/manifest/dep_modifier.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ impl FromStr for DepSpec {
256256
anyhow::bail!("Dependency spec cannot be empty");
257257
}
258258

259-
let mut s = s.split('@');
259+
let mut s = s.trim().split('@');
260260

261261
let name = s
262262
.next()

0 commit comments

Comments
 (0)