Removed value method and use deref to get type

This commit is contained in:
Fayeed Pawaskar
2023-09-10 21:40:22 +05:30
parent 7b921fc767
commit af76659830
11 changed files with 48 additions and 54 deletions

View File

@@ -872,7 +872,7 @@ impl MachineState {
}
}
Ok(Number::Integer(n)) => {
let result = n.value().try_into();
let result = (&*n).try_into();
if let Ok(value) = result {
printer.max_depth = value;