aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r--components/script/stylesheet_loader.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs
index e1a55b3a8ac..17bf780cf32 100644
--- a/components/script/stylesheet_loader.rs
+++ b/components/script/stylesheet_loader.rs
@@ -120,7 +120,11 @@ impl FetchResponseListener for StylesheetContext {
mime.type_() == mime::TEXT && mime.subtype() == mime::CSS
});
- let data = if is_css { mem::replace(&mut self.data, vec![]) } else { vec![] };
+ let data = if is_css {
+ mem::replace(&mut self.data, vec![])
+ } else {
+ vec![]
+ };
// TODO: Get the actual value. http://dev.w3.org/csswg/css-syntax/#environment-encoding
let environment_encoding = UTF_8;