fix templateing issue
This commit is contained in:
parent
488a8eab5e
commit
79e7c305bf
2
build.rs
2
build.rs
@ -18,7 +18,7 @@ fn main() {
|
||||
|
||||
let seed = env::var("RHAI_AHASH_SEED").map_or_else(|_| "None".into(), |s| format!("Some({s})"));
|
||||
|
||||
contents = contents.replace("{{AHASH_SEED}}", &seed);
|
||||
contents = contents.replace("{{ AHASH_SEED }}", &seed);
|
||||
|
||||
File::create("src/config/hashing.rs")
|
||||
.expect("cannot create `config.rs`")
|
||||
|
@ -117,7 +117,7 @@ mod internal {
|
||||
|
||||
#[cfg(not(feature = "static_hash"))]
|
||||
mod internal {
|
||||
const AHASH_SEED: Option<[u64; 4]> = {{ AHASH_SEED }};
|
||||
const AHASH_SEED: Option<[u64; 4]> = None;
|
||||
|
||||
/// Gets the current Rhai Ahash Seed. If the seed is not yet defined, this will automatically set a seed.
|
||||
/// The default seed is not stable and may change between versions.
|
||||
|
Loading…
Reference in New Issue
Block a user