Skip to content

Commit 3b06c10

Browse files
committed
Fix clippy finding
1 parent be60982 commit 3b06c10

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cli/src/print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn print_sc_help(mut app: &mut Command, subcommands: &[&str]) -> Result<()>
5454

5555
/// Limit a string to a specific length, using an ellipsis to indicate
5656
/// truncation.
57-
pub fn truncate(text: &str, max_length: usize) -> Cow<str> {
57+
pub fn truncate(text: &str, max_length: usize) -> Cow<'_, str> {
5858
if text.width() > max_length {
5959
let mut len = 0;
6060
let truncated = text

0 commit comments

Comments
 (0)