make clippy happy
This commit is contained in:
parent
e9cca49fc9
commit
8c500ab6a9
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue