sunjay / turtle

Create Animated Drawings in Rust
http://turtle.rs
Mozilla Public License 2.0
559 stars 54 forks source link

Remove T: Random bounds from RandomSlice impls for fixed-size arrays #236

Closed sunjay closed 3 years ago

sunjay commented 3 years ago

This fixes a bug discovered in #231 where choose couldn't be used with a fixed-size array because we had incorrectly put T: Random on the RandomSlice impls for those types.

codecov[bot] commented 3 years ago

Codecov Report

Merging #236 (fe3b892) into master (5d26e77) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #236   +/-   ##
=======================================
  Coverage   61.17%   61.17%           
=======================================
  Files          40       40           
  Lines        2697     2697           
=======================================
  Hits         1650     1650           
  Misses       1047     1047           
Impacted Files Coverage Δ
src/rand.rs 55.81% <ø> (ø)

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 5d26e77...fe3b892. Read the comment docs.