diff options
author | Teddy Wing | 2020-06-27 20:45:07 +0200 |
---|---|---|
committer | Teddy Wing | 2020-06-27 20:45:07 +0200 |
commit | 21bbc6274117cd4b9a15dda63de284e8f9bad34d (patch) | |
tree | c8f260f415a14271daab862f74e86d5591fa142c | |
parent | 81402cc311ae075d036759cabab829f61fd216be (diff) | |
download | fastcgi-conduit-21bbc6274117cd4b9a15dda63de284e8f9bad34d.tar.bz2 |
FastCgiRequest: Remove elidable `'b` lifetime in `conduit::RequestExt`
Turns out I don't need this `'b` lifetime in the `conduit::RequestExt`
`impl`. I had just assumed it was necessary because I copied it as `'a`
from the "missing trait methods" error message.
-rw-r--r-- | src/lib.rs | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -134,20 +134,20 @@ impl<'a> conduit::RequestExt for FastCgiRequest<'a> { self.scheme() } - fn host<'b>(&'b self) -> conduit::Host<'b> { + fn host(&self) -> conduit::Host<'_> { conduit::Host::Name(&self.host) } - fn virtual_root<'b>(&'b self) -> std::option::Option<&'b str> { todo!() } + fn virtual_root(&self) -> std::option::Option<&str> { todo!() } - fn path<'b>(&'b self) -> &'b str { todo!() } - fn query_string<'b>(&'b self) -> std::option::Option<&'b str> { todo!() } - fn remote_addr<'b>(&self) -> std::net::SocketAddr { todo!() } - fn content_length<'b>(&self) -> std::option::Option<u64> { todo!() } - fn headers<'b>(&self) -> &conduit::HeaderMap { todo!() } - fn body<'b>(&'b mut self) -> &'b mut (dyn std::io::Read + 'b) { todo!() } - fn extensions<'b>(&'b self) -> &'b conduit::TypeMap { todo!() } - fn mut_extensions<'b>(&'b mut self) -> &'b mut conduit::TypeMap { todo!() } + fn path(&self) -> &str { todo!() } + fn query_string(&self) -> std::option::Option<&str> { todo!() } + fn remote_addr(&self) -> std::net::SocketAddr { todo!() } + fn content_length(&self) -> std::option::Option<u64> { todo!() } + fn headers(&self) -> &conduit::HeaderMap { todo!() } + fn body(&mut self) -> &mut (dyn std::io::Read) { todo!() } + fn extensions(&self) -> &conduit::TypeMap { todo!() } + fn mut_extensions(&mut self) -> &mut conduit::TypeMap { todo!() } } |