Auto fix some warnings
This commit is contained in:
parent
36cde6fc0e
commit
7ff97af909
9 changed files with 5 additions and 11 deletions
|
@ -14,7 +14,7 @@ pub mod web;
|
|||
pub(super) type ApiParameterType = Vec<usdpl_back::core::serdes::Primitive>;*/
|
||||
|
||||
mod driver_handler;
|
||||
pub use driver_handler::{Handler, Connection};
|
||||
pub use driver_handler::Connection;
|
||||
|
||||
mod user_event_service;
|
||||
pub use user_event_service::UserEventService;
|
||||
|
|
|
@ -11,7 +11,6 @@ mod resume_worker;
|
|||
//mod api_worker;
|
||||
mod utility;
|
||||
|
||||
use settings::OnSetSpecified;
|
||||
|
||||
use simplelog::{LevelFilter, WriteLogger};
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
use std::sync::mpsc::Sender;
|
||||
use std::thread::{self, JoinHandle};
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ pub fn auto_detect0(
|
|||
variant_id: u64,
|
||||
variant_name: String,
|
||||
) -> Driver {
|
||||
let mut general_driver = Box::new(General {});
|
||||
let general_driver = Box::new(General {});
|
||||
|
||||
let cpu_info: String = std::fs::read_to_string("/proc/cpuinfo").unwrap_or_default();
|
||||
log::debug!("Read from /proc/cpuinfo:\n{}", cpu_info);
|
||||
|
|
|
@ -3,4 +3,3 @@ pub mod limits_worker;
|
|||
mod utility;
|
||||
|
||||
pub use auto_detect::{auto_detect0, auto_detect_provider};
|
||||
pub use utility::get_dev_messages;
|
||||
|
|
|
@ -14,12 +14,11 @@ pub mod rog_ally;
|
|||
pub mod msi_claw;
|
||||
|
||||
pub use detect::{
|
||||
auto_detect0, auto_detect_provider, get_dev_messages,
|
||||
auto_detect0, auto_detect_provider,
|
||||
limits_worker::spawn as limits_worker_spawn,
|
||||
};
|
||||
pub use driver::Driver;
|
||||
pub use general::{General, SettingVariant, Settings};
|
||||
pub use min_max::{min_max_from_json, MinMax};
|
||||
|
||||
pub use error::SettingError;
|
||||
pub use traits::{
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
use crate::persist::CpuJson;
|
||||
use crate::settings::generic::{Cpu as GenericCpu, Cpus as GenericCpus};
|
||||
use crate::settings::MinMax;
|
||||
use crate::settings::{OnPowerEvent, OnSetSpecified, HasSystemDefaults, HasLimits, ProviderId, SettingError};
|
||||
use crate::settings::{ProviderBuilder, TCpu, TCpus};
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@ use limits_core::json_v2::GenericGpuLimit;
|
|||
//use procbox::gpu::IntelGpu; // TODO
|
||||
|
||||
use crate::api::RangeLimit;
|
||||
use crate::persist::{GpuJson, MinMaxJson};
|
||||
use crate::settings::{min_max_from_json, MinMax};
|
||||
use crate::persist::GpuJson;
|
||||
use crate::settings::{OnPowerEvent, OnSetSpecified, HasLimits, HasSystemDefaults, ProviderId, SettingError};
|
||||
use crate::settings::{ProviderBuilder, TGpu};
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ use sysfuss::{capability::attributes, BasicEntityPath, SysEntity};
|
|||
use procbox::combo::AmdGpu;
|
||||
|
||||
use crate::api::RangeLimit;
|
||||
use crate::persist::{GpuJson, MinMaxJson};
|
||||
use crate::persist::GpuJson;
|
||||
use crate::settings::{HasLimits, HasSystemDefaults, OnSetSpecified, ProviderId, SettingError};
|
||||
use crate::settings::{ProviderBuilder, TGpu};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue