Skip to content

Commit 120aa21

Browse files
committed
Fixed --all-features bugs
1 parent 1ac8079 commit 120aa21

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

screeps-game-api/src/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ use crate::{
1414

1515
use log::error;
1616
use num_derive::FromPrimitive;
17-
use serde::Deserialize;
17+
use serde::{Serialize, Deserialize};
1818

1919
#[repr(i32)]
2020
#[derive(Debug, PartialEq, Eq, Clone, Copy, FromPrimitive, Hash)]

screeps-game-api/src/macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ macro_rules! reference_wrappers {
182182
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError> {
183183
#[cfg(feature = "check-all-casts")]
184184
{
185-
::traits::TryFrom::try_from(reference)
185+
$crate::traits::TryFrom::try_from(reference)
186186
}
187187
#[cfg(not(feature = "check-all-casts"))]
188188
{
189-
unsafe { Ok(::stdweb::ReferenceType::from_reference_unchecked(reference)) }
189+
unsafe { Ok(stdweb::ReferenceType::from_reference_unchecked(reference)) }
190190
}
191191
}
192192
}

0 commit comments

Comments
 (0)