From f924ef16e4fc3b91f2ecce2f15369dd6326d6480 Mon Sep 17 00:00:00 2001 From: FabianLars Date: Thu, 7 Aug 2025 23:31:46 +0200 Subject: [PATCH] clippy --- .github/workflows/test-rust.yml | 14 +++++++++----- plugins/shell/src/scope_entry.rs | 2 ++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index cc2bcac8e..c28f2656a 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -200,25 +200,29 @@ jobs: target: x86_64-pc-windows-msvc, os: windows-latest, runner: 'cargo', - command: 'test' + command: 'test', + toolchain: '1.77.2' } - { target: x86_64-unknown-linux-gnu, os: ubuntu-22.04, runner: 'cargo', - command: 'test' + command: 'test', + toolchain: '1.77.2' } - { target: aarch64-apple-darwin, os: macos-latest, runner: 'cargo', - command: 'test' + command: 'test', + toolchain: '1.77.2' } - { target: aarch64-apple-ios, os: macos-latest, runner: 'cargo', - command: 'build' + command: 'build', + toolchain: '1.77.2' } - { target: aarch64-linux-android, @@ -241,7 +245,7 @@ jobs: - uses: dtolnay/rust-toolchain@master with: - toolchain: ${{ matrix.platform.toolchain || "1.77.2" }} + toolchain: ${{ matrix.platform.toolchain }} targets: ${{ matrix.platform.target }} - uses: Swatinem/rust-cache@v2 diff --git a/plugins/shell/src/scope_entry.rs b/plugins/shell/src/scope_entry.rs index 598391787..8a70fff79 100644 --- a/plugins/shell/src/scope_entry.rs +++ b/plugins/shell/src/scope_entry.rs @@ -7,6 +7,7 @@ use serde::{de::Error as DeError, Deserialize, Deserializer}; use std::path::PathBuf; /// A command allowed to be executed by the webview API. +#[allow(dead_code)] #[derive(Debug, Clone, PartialEq, Eq, Hash)] pub(crate) struct Entry { pub(crate) name: String, @@ -15,6 +16,7 @@ pub(crate) struct Entry { pub(crate) sidecar: bool, } +#[allow(dead_code)] #[derive(Deserialize)] pub(crate) struct EntryRaw { pub(crate) name: String,