15 |
let name = if input.starts_with("__") {
|
16 |
#[allow(clippy::string_slice)]
|
17 |
rustc_demangle::try_demangle(&input[1..]).ok()?
|
208 |
// source string.
|
209 |
#[allow(clippy::string_slice)]
|
210 |
let matches = names
|
12 |
#[allow(clippy::string_slice, clippy::indexing_slicing)]
|
13 |
pub(super) fn get_input(config: Option<&Config>, name: &str, default: &str) -> Result<Vec<String>> {
|
12 |
// as far as I know, this is safe because the slices are always on specific boundaries
|
13 |
#[allow(clippy::string_slice, clippy::indexing_slicing)]
|
14 |
pub(super) fn tokenize(input: &str) -> Option<Vec<String>> {
|
204 |
// safe slice, as it is only on the hash, which is hexadecimal
|
205 |
#[allow(clippy::string_slice, clippy::indexing_slicing)]
|
206 |
pub(super) fn get_todo_line_segments(
|
66 |
// safe slice, as it is only on the hash, which is hexadecimal
|
67 |
#[allow(clippy::string_slice, clippy::indexing_slicing)]
|
68 |
fn build_leading_summary(commit: &Commit, is_full_width: bool) -> ViewLine {
|
158 |
// safe slice, only slices across graphemes whitespace
|
159 |
#[allow(clippy::string_slice, clippy::indexing_slicing)]
|
160 |
fn get_diff_line_segments(
|
35 |
#[inline]
|
36 |
#[allow(clippy::string_slice, clippy::indexing_slicing)]
|
37 |
pub fn map_keybindings<CustomEvent: crate::CustomEvent>(bindings: &[String]) -> Vec<Event<CustomEvent>> {
|
188 |
#[allow(clippy::indexing_slicing, clippy::string_slice, clippy::panic)]
|
189 |
pub(crate) fn _assert_rendered_output(options: AssertRenderOptions, actual: &[String], expected: &[String]) {
|
324 |
}
|
325 |
#[allow(clippy::string_slice)]
|
326 |
#[allow(clippy::indexing_slicing)]
|
1082 |
// string.
|
1083 |
#![allow(clippy::string_slice)]
|