change Response::version() to return Version by value
This commit is contained in:
		| @@ -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 | ||||
|     } | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -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() | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user