diff options
Diffstat (limited to 'oryxc/src/errors.rs')
| -rw-r--r-- | oryxc/src/errors.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/oryxc/src/errors.rs b/oryxc/src/errors.rs index 5332d17..a8350dd 100644 --- a/oryxc/src/errors.rs +++ b/oryxc/src/errors.rs @@ -97,13 +97,13 @@ pub struct OryxError { } impl OryxError { - pub fn new<T>(beg: usize, end: usize, msg: T) -> Self + pub fn new<T>(span: (usize, usize), msg: T) -> Self where T: Into<Cow<'static, str>>, { return Self { - span: (beg, end), - msg: msg.into(), + span, + msg: msg.into(), }; } |