Skip to content

Commit

Permalink
Format components config #21373
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdido999 committed Sep 2, 2018
1 parent c8f3abf commit ce41c95
Show file tree
Hide file tree
Showing 6 changed files with 446 additions and 227 deletions.
7 changes: 6 additions & 1 deletion components/config/basedir.rs
Expand Up @@ -8,7 +8,12 @@

use std::path::PathBuf;

#[cfg(all(unix, not(target_os = "macos"), not(target_os = "ios"), not(target_os = "android")))]
#[cfg(all(
unix,
not(target_os = "macos"),
not(target_os = "ios"),
not(target_os = "android")
))]
pub fn default_config_dir() -> Option<PathBuf> {
let mut config_dir = ::dirs::config_dir().unwrap();
config_dir.push("servo");
Expand Down
12 changes: 8 additions & 4 deletions components/config/lib.rs
Expand Up @@ -9,17 +9,21 @@ extern crate dirs;
extern crate embedder_traits;
extern crate euclid;
extern crate getopts;
#[macro_use] extern crate lazy_static;
#[macro_use] extern crate log;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate log;
extern crate num_cpus;
extern crate rustc_serialize;
#[macro_use] extern crate serde;
#[macro_use]
extern crate serde;
extern crate servo_geometry;
extern crate servo_url;
extern crate url;

pub mod basedir;
#[allow(unsafe_code)] pub mod opts;
#[allow(unsafe_code)]
pub mod opts;
pub mod prefs;

pub fn servo_version() -> String {
Expand Down

0 comments on commit ce41c95

Please sign in to comment.