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 f83e425 commit f4abf11Copy full SHA for f4abf11
src/content/content_location.rs
@@ -22,7 +22,8 @@ use std::convert::TryInto;
22
/// let mut res = Response::new(200);
23
/// content_location.apply(&mut res);
24
///
25
-/// let content_location = ContentLocation::from_headers(Url::parse("https://example.net/").unwrap(),res)?.unwrap();
+/// let url = Url::parse("https://example.net/")?;
26
+/// let content_location = ContentLocation::from_headers(url, res)?.unwrap();
27
/// assert_eq!(content_location.location(), "https://example.net/");
28
/// #
29
/// # Ok(()) }
0 commit comments