change Response::version() to return Version by value
This commit is contained in:
		| @@ -66,10 +66,10 @@ impl Response { | |||||||
|         &mut self.body |         &mut self.body | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /// Get the `Version` of this `Response`. |     /// Get the HTTP `Version` of this `Response`. | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn version(&self) -> &Version { |     pub fn version(&self) -> Version { | ||||||
|         &self.version |         self.version | ||||||
|     } |     } | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
| @@ -122,9 +122,9 @@ impl Response { | |||||||
|         self.inner.headers() |         self.inner.headers() | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /// Get the `Version` of this `Response`. |     /// Get the HTTP `Version` of this `Response`. | ||||||
|     #[inline] |     #[inline] | ||||||
|     pub fn version(&self) -> &Version { |     pub fn version(&self) -> Version { | ||||||
|         self.inner.version() |         self.inner.version() | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user