aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/script/dom/event.rs6
-rw-r--r--src/components/script/script.rs1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/components/script/dom/event.rs b/src/components/script/dom/event.rs
index b83f660a930..12f34b734d3 100644
--- a/src/components/script/dom/event.rs
+++ b/src/components/script/dom/event.rs
@@ -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;
@@ -15,6 +13,8 @@ use servo_util::str::DOMString;
use geom::point::Point2D;
+use time;
+
pub enum Event_ {
ResizeEvent(uint, uint),
ReflowEvent,
@@ -130,7 +130,7 @@ impl Event {
}
pub fn TimeStamp(&self) -> u64 {
- return self.timestamp;
+ self.timestamp
}
pub fn InitEvent(&mut self,
diff --git a/src/components/script/script.rs b/src/components/script/script.rs
index e72dc8af372..022b3b5e1a5 100644
--- a/src/components/script/script.rs
+++ b/src/components/script/script.rs
@@ -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";