summaryrefslogtreecommitdiff
path: root/src/eval/methods.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-09-20 19:49:47 +0200
committerLaurenz <laurmaedje@gmail.com>2022-09-20 19:49:47 +0200
commit3760748fddd3b793c79c370398a9d4a3fc5afc04 (patch)
treeb1a615e510aa231cfe9757a9c0a35a375e32e3ba /src/eval/methods.rs
parent757a701c1aa2a6fb80033c7e75666661818da6f9 (diff)
Refactor error handling
Diffstat (limited to 'src/eval/methods.rs')
-rw-r--r--src/eval/methods.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval/methods.rs b/src/eval/methods.rs
index 08d7dd3f..19f3d65e 100644
--- a/src/eval/methods.rs
+++ b/src/eval/methods.rs
@@ -1,7 +1,7 @@
//! Methods on values.
use super::{Args, Value, Vm};
-use crate::diag::{At, TypResult};
+use crate::diag::{At, SourceResult};
use crate::syntax::Span;
use crate::util::EcoString;
@@ -12,7 +12,7 @@ pub fn call(
method: &str,
mut args: Args,
span: Span,
-) -> TypResult<Value> {
+) -> SourceResult<Value> {
let name = value.type_name();
let missing = || Err(missing_method(name, method)).at(span);
@@ -121,7 +121,7 @@ pub fn call_mut(
method: &str,
mut args: Args,
span: Span,
-) -> TypResult<()> {
+) -> SourceResult<()> {
let name = value.type_name();
let missing = || Err(missing_method(name, method)).at(span);