summaryrefslogtreecommitdiff
path: root/cli/build.rs
diff options
context:
space:
mode:
authorscarf <greenscarf005@gmail.com>2023-11-28 00:32:12 +0900
committerGitHub <noreply@github.com>2023-11-27 10:32:12 -0500
commit2b7e145e56c7f1fbb4498d4ec6c6f9d237405db7 (patch)
tree24ef9ad68cd9b786aeb12ae79d40d06c3cc92869 /cli/build.rs
parent3d47c7eb1ffc1da810d8d9dd8c0304cb26616d3e (diff)
feat(fmt): support formatting code blocks in Jupyter notebooks (#21310)
Diffstat (limited to 'cli/build.rs')
-rw-r--r--cli/build.rs6
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()
}