Explorar el Código

apply review comment: use the runtime_error directly when possible

Tamo hace 1 semana
padre
commit
c82b39a6c8
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      numbat/src/lib.rs

+ 1 - 2
numbat/src/lib.rs

@@ -764,8 +764,7 @@ impl Context {
 
                             if erc.is_none() {
                                 return Err(Box::new(NumbatError::RuntimeError(
-                                    self.interpreter
-                                        .runtime_error(RuntimeErrorKind::CouldNotLoadExchangeRates),
+                                    self.runtime_error(RuntimeErrorKind::CouldNotLoadExchangeRates),
                                 )));
                             }
                         }