We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86721d1 commit 5c41025Copy full SHA for 5c41025
src/remote.rs
@@ -101,7 +101,7 @@ impl<'repo> Remote<'repo> {
101
/// when you have a URL instead of a remote's name.
102
/// Contrasted with an anonymous remote, a detached remote will not
103
/// consider any repo configuration values.
104
- pub fn create_detached(url: &str) -> Result<Remote<'_>, Error> {
+ pub fn create_detached<S: Into<Vec<u8>>>(url: S) -> Result<Remote<'repo>, Error> {
105
crate::init();
106
let mut ret = ptr::null_mut();
107
let url = CString::new(url)?;
0 commit comments