Closed soenkehahn closed 3 years ago
I think this is reasonable. I can't think of any really important use cases for splitting non-static strings, and if someone has a use case, we can easily re-enable it.
We should probably also only provide Input
implementations for SplitWhitespace<'static>
, Split<'static>
, and SplitAsciiWhitespaceCopy<'static>
.
This narrows down the types allowed as arguments to
Split
(and therefore the types of values after%
in macros). The reasoning is thatSplit
is meant as a convenience for working with string literals,For more discussion, see https://www.reddit.com/r/rust/comments/poqlo9/cradle_run_child_processes_with_ease/hd00yla/?utm_source=reddit&utm_medium=web2x&context=3.
Do we have any reasonable usecases where arguments to
Split
are not&'static str
?