9 ms·
Maybe there shouldn't be a to_bytes(body) -> Bytes function at all ? Only a to_bytes(body: B, max_size: Option<usize>) This way if someone REALLY
by lovasoa 4y ago
Maybe there shouldn't be a
to_bytes(body) -> Bytes
function at all ?
Only a
to_bytes(body: B, max_size: Option<usize>)
This way if someone REALLY wants the behavior that potentially results in a crash, they still have access to it, but have to be really explicit about it.