Remove unused imports in parser.rs

Box return values in LoxError

- Box Return.value in LoxError
- Deref boxed value when assigning to ret
- Box value when constructing Return variants
- Update Cargo.toml edition to 2024 and add nightly toolchain
This commit is contained in:
Giulio Agostini
2026-07-07 07:23:44 +02:00
parent 2498b3b345
commit 2c3267e8a4
4 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ pub enum LoxError {
},
Return {
source_slice: SourceSlice,
value: BaseValue,
value: Box<BaseValue>,
return_label: String,
},
}