mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-18 17:11:15 -03:00
This makes them more general than the previous versions which expected `&wstr`. It comes at the cost of additional eager calls to `chars()`. To implement `appendln` without having to call `append` twice, implement `IntoCharIter` for chained iterators whose elements are both the kind of iterator specified by `IntoCharIter`. Because `IntoCharIter` is not implemented for owned types to avoid allocations, some call sites which used to pass `WString` need to be updated to pass references instead, which constitutes the bulk of the changes in this commit. Part of #12396