diff options
Diffstat (limited to 'build.rs')
-rwxr-xr-x | build.rs | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/build.rs b/build.rs index b536da6..1279050 100755 --- a/build.rs +++ b/build.rs @@ -5,19 +5,27 @@ fn main() { println!("cargo::rerun-if-changed=./build.rs"); if std::env::var_os("PKGDATADIR").is_none() { - println!("cargo::rustc-env=PKGDATADIR={}", { - let mut path = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); - path.push("share"); - path - }.display()) + println!( + "cargo::rustc-env=PKGDATADIR={}", + { + let mut path = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); + path.push("share"); + path + } + .display() + ) } if std::env::var_os("LOCALEDIR").is_none() { - println!("cargo::rustc-env=LOCALEDIR={}", { - let mut path = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); - path.push("locale"); - path - }.display()) + println!( + "cargo::rustc-env=LOCALEDIR={}", + { + let mut path = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); + path.push("locale"); + path + } + .display() + ) } if std::env::var_os("APP_ID").is_none() { @@ -30,6 +38,11 @@ fn main() { None::<&str>, Some("./icons"), // Stock icons to include - ["menu", "brain-augemnted" /* sic! */, "paper-plane", "editor"], + [ + "menu", + "brain-augemnted", /* sic! */ + "paper-plane", + "editor", + ], ); } |