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
❗ Currently Result::then() allows returning a promise which automatically gets unwrapped. That logic should be deprecated and removed in v3 since it's rather magically. The new andThen function should be used for this purpose. We'll have to add a note for that in the code and release notes.
(to investigate: if it makes sense to keep on supporting it during runtime, but make psalm fail)
The text was updated successfully, but these errors were encountered:
Introduce new
andThen
method: https://doc.rust-lang.org/rust-by-example/error/option_unwrap/and_then.htmlThis method can be used to e.g. map an Option into another option:
They apply to:
❗ Currently Result::then() allows returning a promise which automatically gets unwrapped. That logic should be deprecated and removed in v3 since it's rather magically. The new
andThen
function should be used for this purpose. We'll have to add a note for that in the code and release notes.(to investigate: if it makes sense to keep on supporting it during runtime, but make psalm fail)
The text was updated successfully, but these errors were encountered: