Acknowledge provenance of cache_dir code

This commit is contained in:
David Tolnay 2025-03-02 23:11:56 -08:00
parent 4317adcaf1
commit 5f32c30ad1
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -30,6 +30,7 @@ pub fn cache_dir() -> Result<PathBuf> {
Ok(cache_dir.join("bat"))
}
// Based on etcetera v0.9.0
#[cfg(windows)]
mod windows {
use std::env;
@ -87,6 +88,7 @@ mod windows {
}
}
// Based on etcetera v0.9.0
#[cfg(not(windows))]
mod xdg {
use std::env;