Skip to content

Commit 307cdc5

Browse files
committed
Fix warning due to configurable features and module visibility.
1 parent 1960d11 commit 307cdc5

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

screeps-game-api/src/constants.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ use crate::{
1111
};
1212
use log::error;
1313
use num_derive::FromPrimitive;
14+
#[allow(unused_imports)]
1415
use serde::{Deserialize, Serialize};
1516
use stdweb::{Number, Reference, Value};
1617

screeps-game-api/src/game.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,8 @@ pub fn time() -> u32 {
508508
/// `ConversionError` if the type does not match.
509509
///
510510
/// If all you want to assume is that something has an ID, use
511-
/// [`get_object_erased`]. [http://docs.screeps.com/api/#Game.getObjectById]: http://docs.screeps.com/api/#Game.getObjectById
511+
/// [`get_object_erased`].
512+
/// [http://docs.screeps.com/api/#Game.getObjectById]: http://docs.screeps.com/api/#Game.getObjectById
512513
pub fn get_object_typed<T>(id: &str) -> Result<Option<T>, ConversionError>
513514
where
514515
T: HasId + SizedRoomObject,

screeps-game-api/src/js_collections/js_vec.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use crate::{
77
use std::marker::PhantomData;
88
use stdweb::{Array, InstanceOf, JsSerialize, Reference, ReferenceType, Value};
99

10-
//
1110
// - InstanceOf
1211
// - AsRef<Reference>
1312
// - ReferenceType

screeps-game-api/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#![recursion_limit = "128"]
2121

2222
#[macro_use]
23-
pub(crate) mod macros;
23+
pub mod macros;
2424

2525
pub mod constants;
2626
pub mod game;

0 commit comments

Comments
 (0)