generated from luke-else/egui-template
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
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:
parent
1cef80b8b8
commit
02178d83a2
56
.gitea/workflows/test.yaml
Normal file
56
.gitea/workflows/test.yaml
Normal 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
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user