diff options
author | scarf <greenscarf005@gmail.com> | 2023-11-28 00:32:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-27 10:32:12 -0500 |
commit | 2b7e145e56c7f1fbb4498d4ec6c6f9d237405db7 (patch) | |
tree | 24ef9ad68cd9b786aeb12ae79d40d06c3cc92869 /cli/build.rs | |
parent | 3d47c7eb1ffc1da810d8d9dd8c0304cb26616d3e (diff) |
feat(fmt): support formatting code blocks in Jupyter notebooks (#21310)
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() } |