make clippy happy

This commit is contained in:
Sebastian Hugentobler 2025-05-26 13:59:19 +02:00
parent e9cca49fc9
commit 8c500ab6a9
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M

View file

@ -27,7 +27,7 @@ impl Class {
superclass: Option<Class>, superclass: Option<Class>,
methods: HashMap<String, Function>, methods: HashMap<String, Function>,
) -> Self { ) -> Self {
let superclass = superclass.map(|x| Box::new(x)); let superclass = superclass.map(Box::new);
Self { Self {
name, name,