mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove dirs crate from use in UWP builds.
This commit is contained in:
parent
237ef8da34
commit
3e22b52b47
7 changed files with 15 additions and 4 deletions
|
@ -35,9 +35,14 @@ pub fn default_config_dir() -> Option<PathBuf> {
|
|||
Some(config_dir)
|
||||
}
|
||||
|
||||
#[cfg(target_os = "windows")]
|
||||
#[cfg(all(target_os = "windows", not(feature = "uwp")))]
|
||||
pub fn default_config_dir() -> Option<PathBuf> {
|
||||
let mut config_dir = ::dirs::config_dir().unwrap();
|
||||
config_dir.push("Servo");
|
||||
Some(config_dir)
|
||||
}
|
||||
|
||||
#[cfg(all(target_os = "windows", feature = "uwp"))]
|
||||
pub fn default_config_dir() -> Option<PathBuf> {
|
||||
None
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue