Skip to content

Commit dc8f8a8

Browse files
committed
api: use the traits to get a name
1 parent 7d48840 commit dc8f8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ impl Keyring {
254254
let keys = buffer
255255
.iter()
256256
.map(|&id| Key::new_impl(id))
257-
.partition(|key| key.description().unwrap().type_ == "keyring");
257+
.partition(|key| key.description().unwrap().type_ == keytypes::Keyring::name());
258258
Ok((
259259
keys.1,
260260
keys.0

0 commit comments

Comments
 (0)