mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-19 01:14:43 -05:00
chore: make clippy warnings fail CI, fix them (#1038)
* chore: make clippy warnings fail CI, fix them * chore: pin docker cache action
This commit is contained in:
@@ -23,7 +23,7 @@ jobs:
|
|||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||||
|
|
||||||
- name: Docker Cache
|
- name: Docker Cache
|
||||||
uses: AndreKurait/docker-cache@0.6.0
|
uses: AndreKurait/docker-cache@eb0683e3972ed3066587b7199d3a0e9bd114bd3c #0.6.0
|
||||||
with:
|
with:
|
||||||
key: docker-${{ matrix.target-os }}-${{ hashFiles('pkg/images/') }}
|
key: docker-${{ matrix.target-os }}-${{ hashFiles('pkg/images/') }}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
- name: Install clippy
|
- name: Install clippy
|
||||||
run: rustup component add clippy
|
run: rustup component add clippy
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
run: cargo clippy --all --all-features --verbose
|
run: cargo clippy --all --all-features -- --deny clippy::all
|
||||||
|
|
||||||
check-audit:
|
check-audit:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
|
|||||||
@@ -1032,7 +1032,7 @@ impl GpuController for AmdGpuController {
|
|||||||
.handle
|
.handle
|
||||||
.get_memory_clock_levels()
|
.get_memory_clock_levels()
|
||||||
.inspect_err(|err| {
|
.inspect_err(|err| {
|
||||||
debug!("could not get active memory power state: {err:#}")
|
debug!("could not get active memory power state: {err:#}");
|
||||||
})
|
})
|
||||||
.ok()
|
.ok()
|
||||||
.and_then(|levels| levels.active),
|
.and_then(|levels| levels.active),
|
||||||
|
|||||||
+4
-4
@@ -530,10 +530,10 @@ impl AsyncComponent for AppModel {
|
|||||||
sender.input(AppMsg::Error(Arc::new(err)));
|
sender.input(AppMsg::Error(Arc::new(err)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some(gpu_id) = initial_gpu_id {
|
if let Some(gpu_id) = initial_gpu_id
|
||||||
if let Err(err) = model.update_gpu_data_full(gpu_id, sender.clone()).await {
|
&& let Err(err) = model.update_gpu_data_full(gpu_id, sender.clone()).await
|
||||||
sender.input(AppMsg::Error(Arc::new(err)));
|
{
|
||||||
}
|
sender.input(AppMsg::Error(Arc::new(err)));
|
||||||
}
|
}
|
||||||
|
|
||||||
let widgets = view_output!();
|
let widgets = view_output!();
|
||||||
|
|||||||
Reference in New Issue
Block a user