We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dfb7cd commit 03514a6Copy full SHA for 03514a6
src/uri/path.rs
@@ -671,6 +671,6 @@ mod tests {
671
}
672
673
fn pq(s: &str) -> PathAndQuery {
674
- s.parse().expect(&format!("parsing {}", s))
+ s.parse().unwrap_or_else(|_| panic!("parsing {s}"))
675
676
src/uri/scheme.rs
@@ -356,6 +356,6 @@ mod test {
356
357
358
fn scheme(s: &str) -> Scheme {
359
- s.parse().expect(&format!("Invalid scheme: {}", s))
+ s.parse().unwrap_or_else(|_| panic!("Invalid scheme: {s}"))
360
361
0 commit comments