chore: supress clippy warning

This commit is contained in:
Ilya Zlobintsev 2024-03-03 23:27:26 +02:00
parent 97b1b70946
commit 36b48e41b4

View File

@ -596,6 +596,7 @@ impl GpuController {
} }
} }
#[allow(clippy::too_many_lines)]
pub async fn apply_config(&self, config: &config::Gpu) -> anyhow::Result<()> { pub async fn apply_config(&self, config: &config::Gpu) -> anyhow::Result<()> {
if let Some(cap) = config.power_cap { if let Some(cap) = config.power_cap {
let hw_mon = self.first_hw_mon()?; let hw_mon = self.first_hw_mon()?;