summaryrefslogtreecommitdiffstats
path: root/crates/matcher/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/matcher/src/lib.rs')
-rw-r--r--crates/matcher/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/matcher/src/lib.rs b/crates/matcher/src/lib.rs
index 92365efb..5b43b0d8 100644
--- a/crates/matcher/src/lib.rs
+++ b/crates/matcher/src/lib.rs
@@ -116,7 +116,7 @@ impl Match {
/// This method panics if `start > self.end`.
#[inline]
pub fn with_start(&self, start: usize) -> Match {
- assert!(start <= self.end);
+ assert!(start <= self.end, "{} is not <= {}", start, self.end);
Match { start, ..*self }
}
@@ -128,7 +128,7 @@ impl Match {
/// This method panics if `self.start > end`.
#[inline]
pub fn with_end(&self, end: usize) -> Match {
- assert!(self.start <= end);
+ assert!(self.start <= end, "{} is not <= {}", self.start, end);
Match { end, ..*self }
}