mirror of
https://github.com/wez/wezterm.git
synced 2024-11-23 06:54:45 +03:00
move some code around in config/mod.rs
This commit is contained in:
parent
eed6049902
commit
07c6ca94da
@ -35,6 +35,11 @@ pub use ssh::*;
|
||||
pub use tls::*;
|
||||
pub use unix::*;
|
||||
|
||||
lazy_static! {
|
||||
static ref HOME_DIR: PathBuf = dirs::home_dir().expect("can't find HOME dir");
|
||||
static ref RUNTIME_DIR: PathBuf = compute_runtime_dir().unwrap();
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub struct Config {
|
||||
/// The font size, measured in points
|
||||
@ -170,11 +175,6 @@ impl Default for Config {
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref HOME_DIR: PathBuf = dirs::home_dir().expect("can't find HOME dir");
|
||||
static ref RUNTIME_DIR: PathBuf = compute_runtime_dir().unwrap();
|
||||
}
|
||||
|
||||
impl Config {
|
||||
pub fn load() -> Result<Self, Error> {
|
||||
// Note that the directories crate has methods for locating project
|
||||
|
Loading…
Reference in New Issue
Block a user