diff options
author | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-03-09 00:14:14 +0900 |
---|---|---|
committer | Tetsuharu OHZEKI <saneyuki.snyk@gmail.com> | 2014-03-20 23:41:59 +0900 |
commit | 0fccf5e386d2a7d98dfcbaf5b4871fd7d93e887d (patch) | |
tree | 25727b6e1595392fa6ea6b8e8e7eda70e4b8a662 /src/components/main/layout/construct.rs | |
parent | 19a7c429a1eea7b80cefb4b72138fafecc9b924a (diff) | |
download | servo-0fccf5e386d2a7d98dfcbaf5b4871fd7d93e887d.tar.gz servo-0fccf5e386d2a7d98dfcbaf5b4871fd7d93e887d.zip |
Split TCast::to into TCast::to_unchecked and TCast::to.
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r-- | src/components/main/layout/construct.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index 29af0a734be..2c0a7093690 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -795,7 +795,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> { match self.type_id() { TextNodeTypeId => { unsafe { - let text: JS<Text> = TextCast::to(self.get_jsmanaged()); + let text: JS<Text> = TextCast::to(self.get_jsmanaged()).unwrap(); if !is_whitespace(text.get().characterdata.data) { return false } |