@@ -448,7 +448,7 @@ impl Url {
448448 /// let base = Url::parse("https://alice.com/a")?;
449449 /// let url = base.join("http://eve.com/b")?;
450450 /// assert_eq!(url.as_str(), "http://eve.com/b"); // http instead of https
451-
451+ ///
452452 /// # Ok(())
453453 /// # }
454454 /// # run().unwrap();
@@ -1492,7 +1492,6 @@ impl Url {
14921492 /// # }
14931493 /// # run().unwrap();
14941494 /// ```
1495-
14961495 #[ inline]
14971496 pub fn query_pairs ( & self ) -> form_urlencoded:: Parse < ' _ > {
14981497 form_urlencoded:: parse ( self . query ( ) . unwrap_or ( "" ) . as_bytes ( ) )
@@ -1555,7 +1554,7 @@ impl Url {
15551554 /// # fn run() -> Result<(), ParseError> {
15561555 /// let mut url = Url::parse("https://example.com/data.csv")?;
15571556 /// assert_eq!(url.as_str(), "https://example.com/data.csv");
1558-
1557+ ///
15591558 /// url.set_fragment(Some("cell=4,1-6,2"));
15601559 /// assert_eq!(url.as_str(), "https://example.com/data.csv#cell=4,1-6,2");
15611560 /// assert_eq!(url.fragment(), Some("cell=4,1-6,2"));
@@ -2674,8 +2673,7 @@ impl Url {
26742673 fragment_start,
26752674 } ;
26762675 if cfg ! ( debug_assertions) {
2677- url. check_invariants ( )
2678- . map_err ( |reason| Error :: custom ( reason) ) ?
2676+ url. check_invariants ( ) . map_err ( Error :: custom) ?
26792677 }
26802678 Ok ( url)
26812679 }
@@ -2892,7 +2890,7 @@ impl<'de> serde::Deserialize<'de> for Url {
28922890
28932891 struct UrlVisitor ;
28942892
2895- impl < ' de > Visitor < ' de > for UrlVisitor {
2893+ impl Visitor < ' _ > for UrlVisitor {
28962894 type Value = Url ;
28972895
28982896 fn expecting ( & self , formatter : & mut fmt:: Formatter ) -> fmt:: Result {
@@ -3177,7 +3175,7 @@ impl<'a> form_urlencoded::Target for UrlQuery<'a> {
31773175 type Finished = & ' a mut Url ;
31783176}
31793177
3180- impl < ' a > Drop for UrlQuery < ' a > {
3178+ impl Drop for UrlQuery < ' _ > {
31813179 fn drop ( & mut self ) {
31823180 if let Some ( url) = self . url . take ( ) {
31833181 url. restore_already_parsed_fragment ( self . fragment . take ( ) )
0 commit comments