Skip to content
Permalink
Browse files

rustfmt

  • Loading branch information...
jdm committed Oct 3, 2019
1 parent d8cdc71 commit 2156ed7ab281e7e6b39a66c58e37828294d2d64b
Showing with 3 additions and 1 deletion.
  1. +3 −1 components/net/http_cache.rs
@@ -669,7 +669,9 @@ impl HttpCache {

/// Updating consumers who received a response constructed with a ResponseBody::Receiving.
pub fn update_awaiting_consumers(&mut self, request: &Request, response: &Response) {
if let ResponseBody::Done(ref completed_body) = *response.actual_response().body.lock().unwrap() {
if let ResponseBody::Done(ref completed_body) =
*response.actual_response().body.lock().unwrap()
{
let entry_key = CacheKey::new(request.clone());
if let Some(cached_resources) = self.entries.get(&entry_key) {
// Ensure we only wake-up consumers of relevant resources,

0 comments on commit 2156ed7

Please sign in to comment.
You can’t perform that action at this time.