summaryrefslogtreecommitdiff
path: root/oryxc/src/errors.rs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-02 22:12:45 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-02 22:12:45 +0100
commita0ac39bf7515e96c0497a68def91a70d83c4e236 (patch)
treed03f14cbd83bb0496bbfc5e13aa7b3cd92b63f07 /oryxc/src/errors.rs
parent854e2c357e49b05ade4a74cbdcfd546cb53adf96 (diff)
Change the OryxError::new() signature
Diffstat (limited to 'oryxc/src/errors.rs')
-rw-r--r--oryxc/src/errors.rs6
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(),
};
}