nushell/crates/nu-plugin/src/plugin
Devyn Cairns 626d597527
Replace panics with errors in thread spawning (#12040)
# Description
Replace panics with errors in thread spawning.

Also adds `IntoSpanned` trait for easily constructing `Spanned`, and an
implementation of `From<Spanned<std::io::Error>>` for `ShellError`,
which is used to provide context for the error wherever there was a span
conveniently available. In general this should make it more convenient
to do the right thing with `std::io::Error` and always add a span to it
when it's possible to do so.

# User-Facing Changes
Fewer panics!

# Tests + Formatting
- 🟢 `toolkit fmt`
- 🟢 `toolkit clippy`
- 🟢 `toolkit test`
- 🟢 `toolkit test stdlib`
2024-03-02 11:14:02 -06:00
..
interface Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
context.rs Bidirectional communication and streams for plugins (#11911) 2024-02-25 16:32:50 -06:00
declaration.rs Bidirectional communication and streams for plugins (#11911) 2024-02-25 16:32:50 -06:00
identity.rs Bidirectional communication and streams for plugins (#11911) 2024-02-25 16:32:50 -06:00
interface.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00
mod.rs Replace panics with errors in thread spawning (#12040) 2024-03-02 11:14:02 -06:00