Add #[must_use] to builders, expose more fields

This commit is contained in:
DasEtwas
2021-04-13 01:39:25 +02:00
parent 355f7a3a39
commit 716c343979
2 changed files with 17 additions and 14 deletions

View File

@@ -197,6 +197,7 @@ impl Collider {
/// A structure responsible for building a new collider.
#[derive(Clone)]
#[cfg_attr(feature = "serde-serialize", derive(Serialize, Deserialize))]
#[must_use = "Builder functions return the updated builder"]
pub struct ColliderBuilder {
/// The shape of the collider to be built.
pub shape: SharedShape,