fn truncate(text: &str, width: usize) -> String