Skip to content

Commit

Permalink
Work around rust-lang/rust#53140
Browse files Browse the repository at this point in the history
Fixes #14.
  • Loading branch information
daboross committed Aug 16, 2018
1 parent cddda40 commit e55360d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion screeps-game-api/src/objects/impls/construction_site.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use stdweb::unstable::TryInto;

use {ConstructionSite, ReturnCode, StructureType};
use {ReturnCode, StructureType};

// TODO: Use root import after https://github.com/rust-lang/rust/issues/53140 is fixed.
use super::super::ConstructionSite;

simple_accessors! {
ConstructionSite;
Expand Down
5 changes: 4 additions & 1 deletion screeps-game-api/src/objects/impls/room_position.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ use stdweb::unstable::TryInto;

use {
Color, Direction, FindConstant, HasPosition, LocalRoomPosition, LookConstant, ReturnCode,
RoomPosition, StructureType,
StructureType,
};

// TODO: Use root import after https://github.com/rust-lang/rust/issues/53140 is fixed.
use super::super::RoomPosition;

impl RoomPosition {
pub fn new(x: u8, y: u8, room_name: &str) -> Self {
js_unwrap!(new RoomPosition(@{x}, @{y}, @{room_name}))
Expand Down

0 comments on commit e55360d

Please sign in to comment.