doomsdayrs,
@doomsdayrs@cyberpunk.lol avatar

Alright #Rust developers, why does using a "?" not cause a move error on line 14, but "unwrap" does?

Edit: Solution is to use "let Some(location) = location" in the if statement, which functions like a match statement without the bulk.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • cubers
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • ethstaker
  • JUstTest
  • osvaldo12
  • modclub
  • GTA5RPClips
  • tester
  • mdbf
  • tacticalgear
  • cisconetworking
  • normalnudes
  • Leos
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines