Clean up the cast calls

This commit is contained in:
Anthony Ramine 2015-10-07 14:55:02 +02:00
parent 13ea3ac413
commit 68014af78e
66 changed files with 412 additions and 718 deletions

View file

@ -151,8 +151,8 @@
//! # use script::dom::node::Node;
//! # use script::dom::htmlelement::HTMLElement;
//! fn f(element: &Element) {
//! let base: &Node = element.upcast::<Node>();
//! let derived: Option<&HTMLElement> = element.downcast::<HTMLElement>();
//! let base = element.upcast::<Node>();
//! let derived = element.downcast::<HTMLElement>();
//! }
//! ```
//!