Skip to content

Commit 9634898

Browse files
committed
to_string in PackageSpec::eq impl
1 parent ff084ea commit 9634898

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

crates/wasm-pkg-common/src/package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ pub struct PackageSpec {
8787

8888
impl PartialEq<str> for PackageSpec {
8989
fn eq(&self, other: &str) -> bool {
90-
format!("{self}") == other
90+
self.to_string() == other
9191
}
9292
}
9393

0 commit comments

Comments
 (0)