We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c184687 commit 9fd7d9aCopy full SHA for 9fd7d9a
src/crates/registry.rs
@@ -26,8 +26,8 @@ impl AlternativeRegistry {
26
}
27
28
/// Specify private ssh key for registry authentication.
29
- pub fn authenticate_with_ssh_key(&mut self, key: String) {
30
- self.key = Some(key);
+ pub fn authenticate_with_ssh_key(&mut self, key: impl Into<String>) {
+ self.key = Some(key.into());
31
32
33
fn index(&self) -> &str {
0 commit comments