From 46a5bdd01aa97d5b47e30ef19818b61d79c8e575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Mikrut?= Date: Wed, 22 Nov 2023 20:45:24 +0100 Subject: [PATCH] =?UTF-8?q?Cz=C5=82ek?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/linux_cli_eyra.yml | 2 +- .github/workflows/windows.yml | 4 +++- krokiet/src/main.rs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux_cli_eyra.yml b/.github/workflows/linux_cli_eyra.yml index 43d9b72..e398738 100644 --- a/.github/workflows/linux_cli_eyra.yml +++ b/.github/workflows/linux_cli_eyra.yml @@ -22,7 +22,7 @@ jobs: run: sudo apt update || true; sudo apt install -y ffmpeg - name: Setup rust version - run: rustup default ${{ matrix.toolchain }} + run: rustup default nightly-2023-11-16 - name: Add eyra run: | diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ce22b41..d0d9ef0 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -39,7 +39,9 @@ jobs: if-no-files-found: error - name: Show console window on windows - run: ./sd.exe -s '#![windows_subsystem = "windows"]' '//#![windows_subsystem = "windows"]' krokiet/src/main.rs + run: | + ./sd.exe -s '#![windows_subsystem = "windows"]' '//#![windows_subsystem = "windows"]' krokiet/src/main.rs + cat krokiet/src/main.rs - name: Compile Krokiet Console run: cargo build --release --bin krokiet diff --git a/krokiet/src/main.rs b/krokiet/src/main.rs index 7318a20..06e9f58 100644 --- a/krokiet/src/main.rs +++ b/krokiet/src/main.rs @@ -1,5 +1,6 @@ // Remove console window in Windows OS #![windows_subsystem = "windows"] +#![allow(unknown_lints)] // May be disabled, but locally I use nightly clippy #![allow(clippy::comparison_chain)] #![allow(clippy::collapsible_if)] #![allow(clippy::should_panic_without_expect)] @@ -79,7 +80,7 @@ pub fn to_remove_debug(app: &MainWindow) { fn to_remove_create_with_header() -> Rc> { let header_row_data: Rc> = Rc::new(VecModel::default()); - for r in 0..100_000 { + for r in 0..10_000 { let items = VecModel::default(); for c in 0..3 {