Skip to content

zbus_names: impl Borrow<str> and AsRef<str>

This addition improves the ergonomics when working with HashMap<OwnedInterfaceName, _>.

Instead of map.get(InterfaceName::try_from("Name").unwrap().into()) it is possible to just use map.get("Name").

This also avoids a memory allocation.

Edited by Max Verevkin

Merge request reports