Skip to content

Commit 9fd7d9a

Browse files
committed
make authenticate_with_ssh_key generic
1 parent c184687 commit 9fd7d9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crates/registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ impl AlternativeRegistry {
2626
}
2727

2828
/// Specify private ssh key for registry authentication.
29-
pub fn authenticate_with_ssh_key(&mut self, key: String) {
30-
self.key = Some(key);
29+
pub fn authenticate_with_ssh_key(&mut self, key: impl Into<String>) {
30+
self.key = Some(key.into());
3131
}
3232

3333
fn index(&self) -> &str {

0 commit comments

Comments
 (0)