diff options
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/build.rs b/cli/build.rs index 01505653a..4a481885e 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -359,11 +359,7 @@ fn create_cli_snapshot(snapshot_path: PathBuf) -> CreateSnapshotOutput { // Ideally we could deduplicate that code. fn deno_version() -> String { if env::var("DENO_CANARY").is_ok() { - format!( - "{}+{}", - env!("CARGO_PKG_VERSION"), - git_commit_hash()[..7].to_string() - ) + format!("{}+{}", env!("CARGO_PKG_VERSION"), &git_commit_hash()[..7]) } else { env!("CARGO_PKG_VERSION").to_string() } |