add unused_mut lint

This commit is contained in:
auronandace
2026-02-08 09:00:14 +00:00
parent a935094d2d
commit 64f18ca89a
18 changed files with 48 additions and 76 deletions
+3 -7
View File
@@ -1,8 +1,4 @@
use alloc::{
borrow::ToOwned,
string::{String, ToString},
vec::Vec,
};
use alloc::{borrow::ToOwned, string::String};
use core::{ffi::VaList, ptr::null_mut};
use crate::{
@@ -21,7 +17,7 @@ use crate::{
sync::Mutex,
};
use bitflags::{Flags, bitflags};
use bitflags::bitflags;
use chrono::{DateTime, Utc};
use super::{
@@ -53,7 +49,7 @@ impl<L: LogSink> LogParams<L> {
}
}
pub fn write_log(&mut self, priority: Priority, message: CStr<'_>, mut ap: VaList) {
pub fn write_log(&mut self, priority: Priority, message: CStr<'_>, ap: VaList) {
if message.is_empty() {
return;
}
+1 -1
View File
@@ -119,7 +119,7 @@ pub unsafe extern "C" fn openlog(ident: *const c_char, opt: c_int, facility: c_i
///
/// Non-POSIX, 4.3BSD-Reno.
#[unsafe(no_mangle)]
pub unsafe extern "C" fn vsyslog(priority: c_int, message: *const c_char, mut ap: VaList) {
pub unsafe extern "C" fn vsyslog(priority: c_int, message: *const c_char, ap: VaList) {
let Some(message) = (unsafe { CStr::from_nullable_ptr(message) }) else {
return;
};