From 0500aa1e594f0d8adf4c409b0b60f7f2d33b8f11 Mon Sep 17 00:00:00 2001 From: Chris Moradi <37349208+chrismoradi@users.noreply.github.com> Date: Sat, 13 Nov 2021 17:35:28 -0800 Subject: [PATCH] fix formatting --- vm/src/builtins/object.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/vm/src/builtins/object.rs b/vm/src/builtins/object.rs index 902ab8d89..127351cba 100644 --- a/vm/src/builtins/object.rs +++ b/vm/src/builtins/object.rs @@ -37,12 +37,14 @@ impl PyBaseObject { }; // Ensure that all abstract methods are implemented before instantiating instance. - if let Some(abs_methods) = cls.get_attr("__abstractmethods__"){ + if let Some(abs_methods) = cls.get_attr("__abstractmethods__") { if let Some(iter) = vm.get_method(abs_methods, "__len__") { let values = vm.invoke(&iter?, ())?; let unimplemented_abstract_method_count = super::int::get_value(&values); if unimplemented_abstract_method_count > &BigInt::from(0) { - return Err(vm.new_type_error("You must implement the abstract methods".to_owned())); + return Err( + vm.new_type_error("You must implement the abstract methods".to_owned()) + ); } } }