Dan Gohman
68a13646f9
Add a from_u32 function to EntityRef.
...
This eliminates the need for casting in common cases.
2018-12-11 15:40:24 -05:00
Dan Gohman
b841652539
Add a Slice to supplement PrimaryMap.
2018-12-11 15:40:24 -05:00
Dan Gohman
e623da51c6
Suppress dead-code warnings on functions expanded from entity_impl!.
2018-12-11 15:40:24 -05:00
Dan Gohman
91477d21c8
Add an as_u32() member to entity_impl types.
...
This allows us to avoid a lot of casting indices back to u32.
2018-12-11 15:40:24 -05:00
Dan Gohman
5d7ece3d15
Fix clippy warning namespaces.
2018-12-06 20:50:38 -05:00
Dan Gohman
5adab629f2
Update to the rustfmt in rust 1.31, which is now stable.
2018-12-06 16:15:48 -05:00
Muhammad Mominul Huque
d266b1a42d
Rename EntityMap to SecondaryMap ( #528 )
...
* Rename `EntityMap` to `SecondaryMap`
2018-09-26 12:03:44 -07:00
Dan Gohman
53a0c6c67f
Update to the rustfmt in rust 1.29, which is now stable.
2018-09-13 12:59:25 -07:00
Dan Gohman
cc4bf1c7fb
Deny unstable_features in "std" builds.
2018-08-13 12:51:49 -07:00
Dan Gohman
a1fe0f82e1
Update to the latest stable rustfmt, 0.4.2-stable (febbb36 2018-04-12).
2018-05-29 10:37:38 -07:00
Dan Gohman
6b88cd44a8
Update to rustfmt-preview ( #348 )
...
* Update to rustfmt-preview.
* Run "cargo fmt --all" with rustfmt 0.4.1.
rustfmt 0.4.1 is the latest release of rustfmt-preview available on the
stable channel.
* Fix a long line that rustfmt 0.4.1 can't handle.
* Remove unneeded commas left behind by rustfmt.
2018-05-25 11:38:38 -07:00
Dan Gohman
9c87f3ac87
Fix some warnings in no_std builds.
...
The dbg! macro expands to nothing in no_std mode, so variables that are
only used for debugging prompt unused variable warnings.
Also, allow unstable_features in no_std builds, since they use
feature(alloc), which is an unstable feature.
2018-04-30 14:04:14 -07:00
Dan Gohman
bf597b7abf
Enable and fix several more clippy lints.
2018-04-17 17:05:03 -07:00
Amanieu d'Antras
9e17e62d68
Move entity into a separate crate ( #297 )
2018-04-10 11:06:49 -07:00