This commit is contained in:
Stephan Dilly 2020-07-09 09:20:59 +02:00
parent cb3b968e3a
commit 0f13ecc54e

View file

@ -101,6 +101,7 @@ pub fn get_message(
}
}
#[inline]
fn limit_str(s: &str, limit: usize) -> &str {
if let Some(first) = s.lines().next() {
let mut limit = limit.min(first.len());