diff --git a/src/remote.rs b/src/remote.rs index 59afa1363a..831e108790 100644 --- a/src/remote.rs +++ b/src/remote.rs @@ -101,7 +101,7 @@ impl<'repo> Remote<'repo> { /// when you have a URL instead of a remote's name. /// Contrasted with an anonymous remote, a detached remote will not /// consider any repo configuration values. - pub fn create_detached(url: &str) -> Result, Error> { + pub fn create_detached>>(url: S) -> Result, Error> { crate::init(); let mut ret = ptr::null_mut(); let url = CString::new(url)?;