mirror of
https://github.com/dtolnay/cargo-expand.git
synced 2025-04-02 20:37:37 +03:00
Acknowledge provenance of cache_dir code
This commit is contained in:
parent
4317adcaf1
commit
5f32c30ad1
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,7 @@ pub fn cache_dir() -> Result<PathBuf> {
|
||||||
Ok(cache_dir.join("bat"))
|
Ok(cache_dir.join("bat"))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Based on etcetera v0.9.0
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
mod windows {
|
mod windows {
|
||||||
use std::env;
|
use std::env;
|
||||||
|
@ -87,6 +88,7 @@ mod windows {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Based on etcetera v0.9.0
|
||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
mod xdg {
|
mod xdg {
|
||||||
use std::env;
|
use std::env;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue