Loading
switch-to-configuration-ng: take &Path in is_unit_disabled
canonicalize() only needs &self, so there is no reason to take ownership of the PathBuf. Accepting impl AsRef<Path> lets the glob iterator call sites keep passing owned PathBufs to .all() while the direct call on new_base_unit_file no longer needs to clone.