Skip to main content

split_repo

Function split_repo 

Source
pub fn split_repo(repo: &str) -> Result<(&str, &str), Failure>
Expand description

Splits owner/repo, refusing any other shape.

ยงErrors

Returns a Failure when the name is not exactly two safe segments.