Skip to content

Commit 96052dd

Browse files
committed
use to_string and change ref to ietf
1 parent aa54f4b commit 96052dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/content_location.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::{Status, Url};
44
///
55
/// # Specifications
66
///
7-
/// - [RFC 7230, section 3.3.2: Content-Length](https://tools.ietf.org/html/rfc7230#section-3.3.2)
7+
/// - [RFC 7230, section 3.3.2: Content-Length](https://tools.ietf.org/html/rfc7231#section-3.1.4.2)
88
///
99
/// # Examples
1010
///
@@ -70,7 +70,7 @@ impl ContentLocation {
7070

7171
/// Get the url.
7272
pub fn location(&self) -> String {
73-
String::from(&self.url)
73+
self.url.to_string()
7474
}
7575

7676
/// Set the url.

0 commit comments

Comments
 (0)