Skip to content

Commit f4abf11

Browse files
Update src/content/content_location.rs
Co-authored-by: Yoshua Wuyts <[email protected]>
1 parent f83e425 commit f4abf11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/content/content_location.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ use std::convert::TryInto;
2222
/// let mut res = Response::new(200);
2323
/// content_location.apply(&mut res);
2424
///
25-
/// let content_location = ContentLocation::from_headers(Url::parse("https://example.net/").unwrap(),res)?.unwrap();
25+
/// let url = Url::parse("https://example.net/")?;
26+
/// let content_location = ContentLocation::from_headers(url, res)?.unwrap();
2627
/// assert_eq!(content_location.location(), "https://example.net/");
2728
/// #
2829
/// # Ok(()) }

0 commit comments

Comments
 (0)