From a5d336fafc5fbd299d5594f295e1bf54db724b12 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 18 Nov 2024 20:10:20 +0000 Subject: [PATCH] refactor: remove unused allow(clippy::indexing_slicing) from 'truncate' --- src/tools.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tools.rs b/src/tools.rs index f4a72fec0..ef460316c 100644 --- a/src/tools.rs +++ b/src/tools.rs @@ -45,7 +45,6 @@ use crate::stock_str; /// Shortens a string to a specified length and adds "[...]" to the /// end of the shortened string. -#[allow(clippy::indexing_slicing)] pub(crate) fn truncate(buf: &str, approx_chars: usize) -> Cow { let count = buf.chars().count(); if count > approx_chars + DC_ELLIPSIS.len() {