Muddobbers ,
@Muddobbers@infosec.exchange avatar

@became_fish

if I'm understanding it correctly..

some_function() is returning an Option, if it's None then you return out from where you are, otherwise you continue and do your thing with the contents of the value 'val'?

Maybe:

if let Some(val) = some_function() {<br></br> println!{"{}", val)<br></br>} else {<br></br> return Ok(...)<br></br>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines