Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Copy bounds to TNode / TElement
  • Loading branch information
Cameron Zwarich committed Oct 1, 2014
1 parent 1581c38 commit 6331420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/style/node.rs
Expand Up @@ -9,7 +9,7 @@ use selectors::AttrSelector;
use string_cache::{Atom, Namespace};


pub trait TNode<'a, E: TElement<'a>> : Clone {
pub trait TNode<'a, E: TElement<'a>> : Clone + Copy {
fn parent_node(&self) -> Option<Self>;
fn first_child(&self) -> Option<Self>;
fn prev_sibling(&self) -> Option<Self>;
Expand All @@ -21,7 +21,7 @@ pub trait TNode<'a, E: TElement<'a>> : Clone {
fn is_html_element_in_html_document(&self) -> bool;
}

pub trait TElement<'a> {
pub trait TElement<'a> : Copy {
fn get_attr(&self, namespace: &Namespace, attr: &str) -> Option<&'a str>;
fn get_link(&self) -> Option<&'a str>;
fn get_local_name(&self) -> &'a Atom;
Expand Down

0 comments on commit 6331420

Please sign in to comment.