Skip to content

Commit 1a17c89

Browse files
authored
Merge pull request #79 from Rust-for-Linux/dev/fix-example-error
- examples: error: use `Error` in `fn main()` - ci: disable the `unsafe-pinned` feature in the MSRV workflow
2 parents 6793b8a + 1ff78a9 commit 1a17c89

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ jobs:
161161
- uses: dtolnay/rust-toolchain@stable
162162
- run: cargo install cargo-hack
163163
- run: git config user.name "github-runner" && git config user.email "<>"
164-
- run: git rebase --exec 'cargo hack --clean-per-run --feature-powerset --exclude-features alloc --exclude-features default --version-range 1.82.. --clean-per-version check --locked --all-targets' --exec 'cargo clean' --root
164+
- run: git rebase --exec 'cargo hack --clean-per-run --feature-powerset --exclude-features unsafe-pinned --exclude-features alloc --exclude-features default --version-range 1.82.. --clean-per-version check --locked --all-targets' --exec 'cargo clean' --root
165165
env:
166166
RUSTFLAGS: "-Dwarnings"
167167
nightly-msrv:

examples/error.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@ impl From<AllocError> for Error {
2424
}
2525

2626
#[allow(dead_code)]
27-
fn main() {}
27+
fn main() {
28+
let _ = Error;
29+
}

0 commit comments

Comments
 (0)