Skip to main content

ensure_distinct

Function ensure_distinct 

Source
pub fn ensure_distinct(aliases: &[Alias]) -> Result<()>
Expand description

Refuse two aliases with the same name.

One would shadow the other in the session map, and which one survived would depend on the order they happened to be added in. A URL quietly pointing at a different host than the one configured is not something to settle by precedence.