rustformers / llm

[Unmaintained, see README] An ecosystem of Rust libraries for working with large language models
https://docs.rs/llm/latest/llm/
Apache License 2.0
6.06k stars 350 forks source link

few unwrap removes #429

Closed chris-ha458 closed 9 months ago

chris-ha458 commented 9 months ago

map_or can be used instead of map()..unwrap_or()

philpax commented 9 months ago

It would be nice to use is_some_and, but that's not in our MSRV. I'll take this for now.