Skip to content

Commit f86bd76

Browse files
author
Jesus H
authored
chore: Merge pull request #2 from jhg/use-external-doc-include-nightly
Use external doc include nightly
2 parents 29df863 + 62c22d7 commit f86bd76

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
features: [ 'std', 'alloc', 'std,lender', 'alloc,lender' ]
3535
runs-on: ${{ matrix.os }}
3636
timeout-minutes: 5
37-
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly')
37+
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') && !endsWith(github.head_ref, '-nightly')
3838
steps:
3939
- uses: actions/checkout@v2
4040
- uses: actions-rs/toolchain@v1
@@ -50,7 +50,7 @@ jobs:
5050
lint:
5151
runs-on: ubuntu-latest
5252
timeout-minutes: 5
53-
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') && !contains(github.ref, 'refs/tags/v')
53+
if: github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && !endsWith(github.ref, '-nightly') && !endsWith(github.head_ref, '-nightly') && !contains(github.ref, 'refs/tags/v')
5454
steps:
5555
- uses: actions/checkout@v2
5656
- uses: actions-rs/toolchain@v1

src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
//! FFI opaque pointers.
2-
//!
3-
//! FFI to use Rust objects from C as opaque pointer.
4-
1+
#![doc = include_str!("../README.md")] // This also allow to run examples in that file.
52
#![allow(unsafe_code)]
63
#![warn(missing_docs)]
74
#![warn(clippy::pedantic)]

0 commit comments

Comments
 (0)