mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-30 21:01:10 +00:00
Eliminate todo!()
s
This commit is contained in:
parent
5b01c048af
commit
7d25c1b54d
5 changed files with 15 additions and 15 deletions
|
@ -11,7 +11,7 @@ fn main() -> std::io::Result<()> {
|
|||
let git_hash_short = String::from_utf8_lossy(&output.stdout);
|
||||
let now = datetime::now();
|
||||
#[allow(deprecated)]
|
||||
let erg_path = std::env::home_dir().unwrap().join(".erg");
|
||||
let erg_path = std::env::home_dir().unwrap_or_default().join(".erg");
|
||||
println!("cargo:rustc-env=GIT_HASH_SHORT={git_hash_short}");
|
||||
println!("cargo:rustc-env=BUILD_DATE={now}");
|
||||
println!("cargo:rustc-env=CARGO_ERG_PATH={}", erg_path.display());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue