We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be60982 commit 3b06c10Copy full SHA for 3b06c10
1 file changed
cli/src/print.rs
@@ -54,7 +54,7 @@ pub fn print_sc_help(mut app: &mut Command, subcommands: &[&str]) -> Result<()>
54
55
/// Limit a string to a specific length, using an ellipsis to indicate
56
/// truncation.
57
-pub fn truncate(text: &str, max_length: usize) -> Cow<str> {
+pub fn truncate(text: &str, max_length: usize) -> Cow<'_, str> {
58
if text.width() > max_length {
59
let mut len = 0;
60
let truncated = text
0 commit comments