@@ -448,7 +448,7 @@ impl Url {
448
448
/// let base = Url::parse("https://alice.com/a")?;
449
449
/// let url = base.join("http://eve.com/b")?;
450
450
/// assert_eq!(url.as_str(), "http://eve.com/b"); // http instead of https
451
-
451
+ ///
452
452
/// # Ok(())
453
453
/// # }
454
454
/// # run().unwrap();
@@ -1492,7 +1492,7 @@ impl Url {
1492
1492
/// # }
1493
1493
/// # run().unwrap();
1494
1494
/// ```
1495
-
1495
+ ///
1496
1496
#[ inline]
1497
1497
pub fn query_pairs ( & self ) -> form_urlencoded:: Parse < ' _ > {
1498
1498
form_urlencoded:: parse ( self . query ( ) . unwrap_or ( "" ) . as_bytes ( ) )
@@ -1555,7 +1555,7 @@ impl Url {
1555
1555
/// # fn run() -> Result<(), ParseError> {
1556
1556
/// let mut url = Url::parse("https://example.com/data.csv")?;
1557
1557
/// assert_eq!(url.as_str(), "https://example.com/data.csv");
1558
-
1558
+ ///
1559
1559
/// url.set_fragment(Some("cell=4,1-6,2"));
1560
1560
/// assert_eq!(url.as_str(), "https://example.com/data.csv#cell=4,1-6,2");
1561
1561
/// assert_eq!(url.fragment(), Some("cell=4,1-6,2"));
@@ -3177,7 +3177,7 @@ impl<'a> form_urlencoded::Target for UrlQuery<'a> {
3177
3177
type Finished = & ' a mut Url ;
3178
3178
}
3179
3179
3180
- impl < ' a > Drop for UrlQuery < ' a > {
3180
+ impl Drop for UrlQuery < ' _ > {
3181
3181
fn drop ( & mut self ) {
3182
3182
if let Some ( url) = self . url . take ( ) {
3183
3183
url. restore_already_parsed_fragment ( self . fragment . take ( ) )
0 commit comments