Skip to content

Fixed the number of arguments for thread_rng gen_range#138

Open
berysaidi wants to merge 1 commit into
deltaphc:masterfrom
berysaidi:master
Open

Fixed the number of arguments for thread_rng gen_range#138
berysaidi wants to merge 1 commit into
deltaphc:masterfrom
berysaidi:master

Conversation

@berysaidi

Copy link
Copy Markdown

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        

@IoIxD

IoIxD commented Jan 31, 2024

Copy link
Copy Markdown
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants