upgraded all dependencies

This commit is contained in:
2025-11-18 16:08:43 -05:00
parent 469dd0519b
commit 8a1b13b139
7 changed files with 330 additions and 378 deletions

View File

@ -137,7 +137,7 @@ impl Visitor for Translator<'_> {
Ast::ClassPerl(perl) => {
self.replace_class_class(perl);
}
Ast::Literal(ref literal) => {
Ast::Literal(literal) => {
if let Literal {
kind: LiteralKind::Special(SpecialLiteralKind::Bell),
..

View File

@ -444,8 +444,8 @@ impl Hash for HashedValue<'_> {
fn hash<H: Hasher>(&self, state: &mut H) {
match self.0 {
Value::Null => state.write_u32(3_221_225_473), // chosen randomly
Value::Bool(ref b) => b.hash(state),
Value::Number(ref num) => {
Value::Bool(b) => b.hash(state),
Value::Number(num) => {
if let Some(num) = num.as_f64() {
num.to_bits().hash(state);
} else if let Some(num) = num.as_u64() {
@ -454,13 +454,13 @@ impl Hash for HashedValue<'_> {
num.hash(state);
}
}
Value::String(ref str) => str.hash(state),
Value::Array(ref arr) => {
Value::String(str) => str.hash(state),
Value::Array(arr) => {
for item in arr {
HashedValue(item).hash(state);
}
}
Value::Object(ref obj) => {
Value::Object(obj) => {
let mut hash = 0;
for (pname, pvalue) in obj {
// We have no way of building a new hasher of type `H`, so we