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 ad1d3c7 commit 18bdbcfCopy full SHA for 18bdbcf
src/uri/path.rs
@@ -599,6 +599,6 @@ mod tests {
599
}
600
601
fn pq(s: &str) -> PathAndQuery {
602
- s.parse().expect(&format!("parsing {}", s))
+ s.parse().unwrap_or_else(|_| panic!("parsing {s}"))
603
604
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