raylib-rs icon indicating copy to clipboard operation
raylib-rs copied to clipboard

Fixed the number of arguments for thread_rng gen_range

Open berysaidi opened this issue 2 years ago • 1 comments

toolchain used: rustc 1.63.0-nightly (5750a6aa2 2022-06-20)

9402 error[E0277]: the trait bound `std::ops::Range<{float}>: SampleUniform` is not satisfied                                                                                                  
9403    --> samples/3d_camera_first_person.rs:17:41                                                                                                                                            
9404     |                                                                                                                                                                                     
9405 17  |         let height: f32 = rng.gen_range(1.0..12.0);                                                                                                                                 
9406     |                               --------- ^^^^^^^^^ the trait `SampleUniform` is not impl                                                                                             
9407 emented for `std::ops::Range<{float}>`                                                                                                                                                    
9408     |                               |                                                                                                                                                     
9409     |                               required by a bound introduced by this call        

berysaidi avatar Sep 18 '22 02:09 berysaidi

Hi, if you're still interested in working on this, some users of the library are moving over to a fork of it which aims to be actively maintained. It would be nice if you reopened the PR there!

IoIxD avatar Jan 31 '24 18:01 IoIxD