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
fs::load_file is only expected to ever call its closure once, and thus only needs to implement FnOnce. Fn allows for the function to be called multiple times, and thus can't drop any wrapped values during its invocation. FnOnce is easier to implement and thus makes load_file easier to use.
The text was updated successfully, but these errors were encountered:
miniquad/src/fs.rs
Lines 31 to 44 in 8a15083
fs::load_file
is only expected to ever call its closure once, and thus only needs to implementFnOnce
.Fn
allows for the function to be called multiple times, and thus can'tdrop
any wrapped values during its invocation.FnOnce
is easier to implement and thus makesload_file
easier to use.The text was updated successfully, but these errors were encountered: