diff options
| author | Teddy Wing | 2020-06-28 12:02:28 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2020-06-28 12:02:28 +0200 | 
| commit | 0529b3763ca263f6c45fb632f24cf5d3c5ea0271 (patch) | |
| tree | 0088bea4dbf71da03040405b3bc82ed0bbf3f54c /src | |
| parent | ed3ab289d13e6024fb504a2d1cfb3852f2327220 (diff) | |
| download | fastcgi-conduit-0529b3763ca263f6c45fb632f24cf5d3c5ea0271.tar.bz2 | |
FastCgiRequest::new: Remove unnecessary variable
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib.rs | 6 | 
1 files changed, 2 insertions, 4 deletions
| @@ -70,7 +70,7 @@ impl<'a> FastCgiRequest<'a> {          let remote_addr = Self::remote_addr(request).context(InvalidRemoteAddr)?;          let content_length = Self::content_length(request); -        let r = Self { +        Ok(Self {              request: request,              http_version: version,              host: host, @@ -81,9 +81,7 @@ impl<'a> FastCgiRequest<'a> {              remote_addr: remote_addr,              content_length: content_length,              extensions: conduit::TypeMap::new(), -        }; - -        Ok(r) +        })      }      pub fn scheme(&self) -> conduit::Scheme { | 
