Skip to content

Commit

Permalink
Acknowledge provenance of cache_dir code
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Mar 3, 2025
1 parent 4317adc commit 5f32c30
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/assets.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -87,6 +88,7 @@ mod windows {
}
}

// Based on etcetera v0.9.0
#[cfg(not(windows))]
mod xdg {
use std::env;
Expand Down

0 comments on commit 5f32c30

Please sign in to comment.