You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been studying Rust programming lately, and come across this wonderful resource from cis198-2016f. Currently, I am using Rust 1.38. When I try to compile problem1.rs, there is a problem with the second parameter of filter function. Rust has changed a lot since 2016, and I want to bring attention to this issue. What I decided to do was to change the parameter with function pointer fn (I read about this in section 19.4 of the online Rust programming book). Maybe function pointer would be the right replacement.
The text was updated successfully, but these errors were encountered:
I have been studying Rust programming lately, and come across this wonderful resource from cis198-2016f. Currently, I am using Rust 1.38. When I try to compile problem1.rs, there is a problem with the second parameter of filter function. Rust has changed a lot since 2016, and I want to bring attention to this issue. What I decided to do was to change the parameter with function pointer
fn
(I read about this in section 19.4 of the online Rust programming book). Maybe function pointer would be the right replacement.The text was updated successfully, but these errors were encountered: