Run rustfmt.

This commit is contained in:
Jordan Petridis
2017-12-09 05:57:16 +02:00
parent 5b19274e6a
commit b528c48e3b
10 changed files with 68 additions and 67 deletions
+3 -3
View File
@@ -342,9 +342,9 @@ impl<'a> Source {
let lmod = headers.get::<LastModified>();
// FIXME: This dsnt work most of the time apparently
if self.http_etag() != etag.map(|x| x.tag())
|| self.last_modified != lmod.map(|x| format!("{}", x))
{
if self.http_etag() != etag.map(|x| x.tag()) || self.last_modified != lmod.map(|x| {
format!("{}", x)
}) {
self.http_etag = etag.map(|x| x.tag().to_string().to_owned());
self.last_modified = lmod.map(|x| format!("{}", x));
self.save()?;