Skip to main content

classify_clone_source

Function classify_clone_source 

Source
pub fn classify_clone_source(url: &str) -> CloneSource
Expand description

Classify a clone URL as network or local.

file:// is a local path wearing a URL, so it is unwrapped rather than waved through on the strength of containing :// — that would have been a hole big enough to drive the whole guard through.