Skip to content

Commit

Permalink
Removed unnecessary return and moved crate import to script.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
gsingh93 committed Apr 30, 2014
1 parent af54869 commit b1f4e04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/script/dom/event.rs
Expand Up @@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

extern crate time;

use dom::bindings::codegen::EventBinding;
use dom::bindings::codegen::EventBinding::EventConstants;
use dom::bindings::js::JS;
Expand All @@ -15,6 +13,8 @@ use servo_util::str::DOMString;

use geom::point::Point2D;

use time;

pub enum Event_ {
ResizeEvent(uint, uint),
ReflowEvent,
Expand Down Expand Up @@ -130,7 +130,7 @@ impl Event {
}

pub fn TimeStamp(&self) -> u64 {
return self.timestamp;
self.timestamp
}

pub fn InitEvent(&mut self,
Expand Down
1 change: 1 addition & 0 deletions src/components/script/script.rs
Expand Up @@ -24,6 +24,7 @@ extern crate js;
extern crate libc;
extern crate native;
extern crate serialize;
extern crate time;
#[phase(syntax)]
extern crate servo_macros = "macros";
extern crate servo_net = "net";
Expand Down

5 comments on commit b1f4e04

@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.

@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 gsingh93/servo/master = b1f4e04 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.

gsingh93/servo/master = b1f4e04 merged ok, testing candidate = 14063b2

@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.

@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.

fast-forwarding master to auto = 14063b2

Please sign in to comment.