Skip to content

Commit

Permalink
Fix datafusion-physical-expr compiling with blake3/traits-preview ena…
Browse files Browse the repository at this point in the history
…bled (#4784)

Co-authored-by: Simon Klier <[email protected]>
  • Loading branch information
BoredPerson and Simon Klier authored Jan 2, 2023
1 parent bf48122 commit ad96d41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions datafusion/physical-expr/src/crypto_expressions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl DigestAlgorithm {
Self::Blake3 => ScalarValue::Binary(value.map(|v| {
let mut digest = Blake3::default();
digest.update(v);
digest.finalize().as_bytes().to_vec()
Blake3::finalize(&digest).as_bytes().to_vec()
})),
})
}
Expand All @@ -149,7 +149,7 @@ impl DigestAlgorithm {
opt.map(|x| {
let mut digest = Blake3::default();
digest.update(x);
digest.finalize().as_bytes().to_vec()
Blake3::finalize(&digest).as_bytes().to_vec()
})
})
.collect();
Expand Down Expand Up @@ -180,7 +180,7 @@ impl DigestAlgorithm {
opt.map(|x| {
let mut digest = Blake3::default();
digest.update(x.as_bytes());
digest.finalize().as_bytes().to_vec()
Blake3::finalize(&digest).as_bytes().to_vec()
})
})
.collect();
Expand Down

0 comments on commit ad96d41

Please sign in to comment.