clippy: Fix more pedantic warnings

This commit is contained in:
Vicki Pfau 2024-08-30 22:30:14 -07:00
parent d1f27cc5fc
commit b8f3f79e0b
2 changed files with 3 additions and 0 deletions

View file

@ -55,6 +55,7 @@ impl fmt::Display for HdmiCecState {
}
impl HdmiCecState {
#[must_use]
pub fn to_human_readable(&self) -> &'static str {
match self {
HdmiCecState::Disabled => "disabled",

View file

@ -5,6 +5,8 @@
* SPDX-License-Identifier: MIT
*/
#![allow(clippy::module_name_repetitions)]
// Re-export relevant proxies
// TODO Some of these should get renamed