From a0ac39bf7515e96c0497a68def91a70d83c4e236 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 2 Mar 2026 22:12:45 +0100 Subject: Change the OryxError::new() signature --- oryxc/src/errors.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'oryxc/src/errors.rs') 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(beg: usize, end: usize, msg: T) -> Self + pub fn new(span: (usize, usize), msg: T) -> Self where T: Into>, { return Self { - span: (beg, end), - msg: msg.into(), + span, + msg: msg.into(), }; } -- cgit v1.2.3