jamiebrynes7 / spatialos-sdk-rs

Rust integration of the SpatialOS C API bindings
Apache License 2.0
21 stars 6 forks source link

Derive `Default` for generated components and types #182

Closed jamiebrynes7 closed 4 years ago

jamiebrynes7 commented 4 years ago

Allows you to write something like:

improbable::Coordinates {
    x: 100.0.into(),
    ..Default::default(),
}

or similar with any generated components/types (it seems update already had this implemented).

codecov[bot] commented 4 years ago

Codecov Report

Merging #182 into master will decrease coverage by 0.00%. The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #182      +/-   ##
==========================================
- Coverage   18.71%   18.70%   -0.01%     
==========================================
  Files          47       47              
  Lines        7423     7426       +3     
==========================================
  Hits         1389     1389              
- Misses       6034     6037       +3     
Impacted Files Coverage Δ
spatialos-sdk/src/worker/schema/float_ord.rs 43.87% <0.00%> (-0.87%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 011420f...20593c4. Read the comment docs.