Skip to content

Commit

Permalink
removing unnecessary to_owned
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhc committed Dec 6, 2013
1 parent 91fcc67 commit ecd44fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/script/dom/element.rs
Expand Up @@ -294,7 +294,7 @@ impl<'self> Element {

impl Element {
pub fn TagName(&self) -> DOMString {
self.tag_name.to_owned().to_ascii_upper()
self.tag_name.to_ascii_upper()
}

pub fn Id(&self, _abstract_self: AbstractNode<ScriptView>) -> DOMString {
Expand Down

4 comments on commit ecd44fe

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from SimonSapin
at ryanhc@ecd44fe

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging ryanhc/servo/removing_to_owned = ecd44fe into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ryanhc/servo/removing_to_owned = ecd44fe merged ok, testing candidate = 531d880

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.