Revert "Upgrade to Rust 1.83 (#9511)" (#9617)

This reverts commit cf20673197 (#9511) due
to failure on powerpc64le in https://github.com/astral-sh/uv/pull/9612
This commit is contained in:
Zanie Blue 2024-12-03 13:21:05 -06:00 committed by GitHub
parent 6cb3bf2b13
commit 6cc7a560f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
31 changed files with 64 additions and 71 deletions

View file

@ -50,7 +50,14 @@ impl FilesystemOptions {
Ok(Some(Self(options)))
}
Err(Error::Io(err)) if err.kind() == std::io::ErrorKind::NotFound => Ok(None),
Err(Error::Io(err)) if err.kind() == std::io::ErrorKind::NotADirectory => Ok(None),
Err(_) if !dir.is_dir() => {
// Ex) `XDG_CONFIG_HOME=/dev/null`
tracing::debug!(
"User configuration directory `{}` does not exist or is not a directory",
dir.display()
);
Ok(None)
}
Err(err) => Err(err),
}
}