Skip to content

Commit

Permalink
Remove unused imports; handle IO failure in append_serialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ms2ger committed Aug 18, 2016
1 parent 4e7c689 commit 4ede9f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/style/properties/properties.mako.rs
Expand Up @@ -468,7 +468,7 @@ fn append_serialization<'a, W, I>(dest: &mut W,
return append_declaration_value(dest, appendable_value, is_important);
}

write!(dest, "{}:", property_name);
try!(write!(dest, "{}:", property_name));

// for normal parsed values, add a space between key: and value
match &appendable_value {
Expand Down
3 changes: 1 addition & 2 deletions components/style/traversal.rs
Expand Up @@ -6,15 +6,14 @@

use animation;
use context::{LocalStyleContext, SharedStyleContext, StyleContext};
use dom::{OpaqueNode, TElement, TNode, TRestyleDamage, UnsafeNode};
use dom::{OpaqueNode, TNode, TRestyleDamage, UnsafeNode};
use matching::{ApplicableDeclarations, ElementMatchMethods, MatchMethods, StyleSharingResult};
use selectors::bloom::BloomFilter;
use selectors::matching::StyleRelations;
use std::cell::RefCell;
use std::sync::atomic::{AtomicUsize, ATOMIC_USIZE_INIT, Ordering};
use tid::tid;
use util::opts;
use values::HasViewportPercentage;

/// Every time we do another layout, the old bloom filters are invalid. This is
/// detected by ticking a generation number every layout.
Expand Down

0 comments on commit 4ede9f6

Please sign in to comment.