Removed unnecessary return and moved crate import to script.rs

This commit is contained in:
Gulshan Singh 2014-04-30 14:08:38 -04:00
parent af548696bb
commit b1f4e04ee2
2 changed files with 4 additions and 3 deletions

View file

@ -2,8 +2,6 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/. */ * 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;
use dom::bindings::codegen::EventBinding::EventConstants; use dom::bindings::codegen::EventBinding::EventConstants;
use dom::bindings::js::JS; use dom::bindings::js::JS;
@ -15,6 +13,8 @@ use servo_util::str::DOMString;
use geom::point::Point2D; use geom::point::Point2D;
use time;
pub enum Event_ { pub enum Event_ {
ResizeEvent(uint, uint), ResizeEvent(uint, uint),
ReflowEvent, ReflowEvent,
@ -130,7 +130,7 @@ impl Event {
} }
pub fn TimeStamp(&self) -> u64 { pub fn TimeStamp(&self) -> u64 {
return self.timestamp; self.timestamp
} }
pub fn InitEvent(&mut self, pub fn InitEvent(&mut self,

View file

@ -24,6 +24,7 @@ extern crate js;
extern crate libc; extern crate libc;
extern crate native; extern crate native;
extern crate serialize; extern crate serialize;
extern crate time;
#[phase(syntax)] #[phase(syntax)]
extern crate servo_macros = "macros"; extern crate servo_macros = "macros";
extern crate servo_net = "net"; extern crate servo_net = "net";