Skip to content

Commit 33bbad5

Browse files
committed
Fix crash on cargo install from crates.io
1 parent e0a2161 commit 33bbad5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schemagen_cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ pub fn print_script(args: &Args) {
468468
set -eu\n\
469469
echo 'CREATE SCHEMA '{}';' > {}-schema-create.sql\n",
470470
env!("CARGO_PKG_VERSION"),
471-
&env!("VERGEN_SHA")[..9],
471+
env!("VERGEN_SHA").get(..9).unwrap_or("unofficial release"),
472472
HEXLOWER_PERMISSIVE.encode(&meta_seed),
473473
quoted_schema_name,
474474
schema_name.unique_name(),

0 commit comments

Comments
 (0)