change Response::version() to return Version by value

This commit is contained in:
Sean McArthur
2018-09-11 14:22:21 -07:00
parent 64569542d4
commit b95de15587
2 changed files with 5 additions and 5 deletions

View File

@@ -66,10 +66,10 @@ impl Response {
&mut self.body
}
/// Get the `Version` of this `Response`.
/// Get the HTTP `Version` of this `Response`.
#[inline]
pub fn version(&self) -> &Version {
&self.version
pub fn version(&self) -> Version {
self.version
}

View File

@@ -122,9 +122,9 @@ impl Response {
self.inner.headers()
}
/// Get the `Version` of this `Response`.
/// Get the HTTP `Version` of this `Response`.
#[inline]
pub fn version(&self) -> &Version {
pub fn version(&self) -> Version {
self.inner.version()
}