Added actions to the repo
Some checks failed
Continuous integration / Check (push) Failing after 1m50s
Continuous integration / Test Suite (push) Failing after 2m10s
Continuous integration / Rustfmt (push) Failing after 35s
Continuous integration / Clippy (push) Failing after 1m47s
Continuous integration / build (push) Failing after 2m13s

This commit is contained in:
Luke Else 2025-02-20 19:48:27 +00:00
parent 1cef80b8b8
commit 02178d83a2
2 changed files with 57 additions and 1 deletions

View File

@ -0,0 +1,56 @@
on: [push, pull_request]
name: Continuous integration
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- run: cargo check
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- run: cargo test
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- run: rustup component add rustfmt
- run: cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- run: rustup component add clippy
- run: cargo clippy -- -D warnings
build:
name: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: false
- run: cargo build

View File

@ -48,7 +48,7 @@ impl TabState {
}
/// Get the currently selected Tab
pub fn get_current_tab(&mut self) -> Option<&mut Box<dyn Tab>> {
pub fn get_current_tab(&mut self) -> Option<&mut Box<dyn Tab + Send>> {
self.get_tab_state(self.current_tab)
}