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
* 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,