mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Removed unnecessary return and moved crate import to script.rs
This commit is contained in:
parent
af548696bb
commit
b1f4e04ee2
2 changed files with 4 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue