Skip to content

Commit a5d336f

Browse files
committed
refactor: remove unused allow(clippy::indexing_slicing) from 'truncate'
1 parent 5ebca15 commit a5d336f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/tools.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ use crate::stock_str;
4545

4646
/// Shortens a string to a specified length and adds "[...]" to the
4747
/// end of the shortened string.
48-
#[allow(clippy::indexing_slicing)]
4948
pub(crate) fn truncate(buf: &str, approx_chars: usize) -> Cow<str> {
5049
let count = buf.chars().count();
5150
if count > approx_chars + DC_ELLIPSIS.len() {

0 commit comments

Comments
 (0)