Stream: t-compiler/rust-analyzer

Topic: some


pksunkara (Nov 08 2020 at 15:33, on Zulip):

Do we have a Some(|) wrapper that behaves like the current .ok and .cl snippets?

Laurențiu (Nov 08 2020 at 16:09, on Zulip):

I don't think so, but there might be a "wrap in Result" (Option too?) assist

pksunkara (Nov 08 2020 at 17:52, on Zulip):

Yeah, but that's an assist. But .ok and .cl and .match are auto completions. If you could point me to the correct place, I can add .some too

Lukas Wirth (Nov 08 2020 at 18:07, on Zulip):

this is where the ok completion is defined

pksunkara (Nov 08 2020 at 18:24, on Zulip):

Thanks

pksunkara (Nov 08 2020 at 18:44, on Zulip):

https://github.com/rust-analyzer/rust-analyzer/pull/6500

Last update: Jul 28 2021 at 03:30UTC