Clippy, clippy, clippy!
This commit is contained in:
parent
d8dba3ac5f
commit
af68acde70
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ impl Display for Class {
|
||||||
|
|
||||||
impl Callable for ClassRef {
|
impl Callable for ClassRef {
|
||||||
fn arity(&self) -> usize {
|
fn arity(&self) -> usize {
|
||||||
return 0;
|
0
|
||||||
}
|
}
|
||||||
|
|
||||||
fn call(&self, _itpr_state: &mut InterpreterState, _arguments: Vec<Value>) -> SloxResult<Value> {
|
fn call(&self, _itpr_state: &mut InterpreterState, _arguments: Vec<Value>) -> SloxResult<Value> {
|
||||||
|
@ -63,7 +63,7 @@ impl Display for Instance {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
f.write_fmt(format_args!(
|
f.write_fmt(format_args!(
|
||||||
"<Instance of {}>",
|
"<Instance of {}>",
|
||||||
self.class.borrow().to_string()
|
self.class.borrow(),
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue