in cargo-guppy/src/mv.rs [280:290]
fn rel_path<'a>(path: &'a Path, workspace_root: &Utf8Path) -> Result<&'a Utf8Path> {
let rel_path = path.strip_prefix(workspace_root).wrap_err_with(|| {
eyre!(
"path {} not in workspace root {}",
path.display(),
workspace_root
)
})?;
Utf8Path::from_path(rel_path)
.ok_or_else(|| eyre!("rel path {} is invalid UTF-8", rel_path.display()))
}