mirror of
https://github.com/MorizzG/rlox.git
synced 2025-12-06 04:12:42 +00:00
replaced Box<str> with SmolStr
This commit is contained in:
parent
fb88595b6c
commit
da6a820638
21 changed files with 137 additions and 85 deletions
|
|
@ -154,7 +154,8 @@ impl Eval for Expr {
|
|||
if let Value::Object(object) = target {
|
||||
object.get(name).ok_or_else(|| {
|
||||
let class = object.class();
|
||||
let name = name.to_owned();
|
||||
let name = name.clone();
|
||||
|
||||
RuntimeError::UndefinedAttribute { class, name }
|
||||
})
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue