diff --git a/src/common.rs b/src/common.rs index c93a61831..e24e4a241 100644 --- a/src/common.rs +++ b/src/common.rs @@ -1629,6 +1629,8 @@ pub fn restore_term_foreground_process_group_for_exit() { } } +#[allow(unused)] +// This function is unused in some configurations/on some platforms fn slice_contains_slice(a: &[T], b: &[T]) -> bool { a.windows(b.len()).any(|aw| aw == b) }