Skip to content

Commit a07b91f

Browse files
committed
GitHub workflow
1 parent 37e306e commit a07b91f

File tree

4 files changed

+51
-34
lines changed

4 files changed

+51
-34
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ jobs:
1818
- uses: actions/checkout@v3
1919
- name: Install cmake
2020
run: sudo apt-get install cmake
21+
- name: Checkout submodules
22+
run: |
23+
git submodule init
24+
git submodule update
2125
- name: Build
2226
run: cargo build --all-features --verbose
2327
- name: Run tests

.github/workflows/docs.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish Documentation
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
11+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
16+
jobs:
17+
docs:
18+
needs: build
19+
20+
runs-on: ubuntu-latest
21+
22+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
23+
permissions:
24+
contents: read
25+
pages: write # to deploy to Pages
26+
id-token: write # to verify the deployment originates from an appropriate source
27+
28+
# Deploy to the github-pages environment
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
33+
steps:
34+
- uses: actions/checkout@v3
35+
- name: Setup Pages
36+
id: pages
37+
uses: actions/configure-pages@v4
38+
- name: Build Docs
39+
run: cargo doc --no-deps --all-features --verbose
40+
- name: Upload artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: './target/doc'
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

.travis.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/user_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pub trait RawUserData: Sized {
3333
#[doc(hidden)]
3434
pub trait RawUserDataMut: RawUserData {
3535
unsafe fn internal_user_data_mut<T: ?Sized, U>(self) -> *mut InternalUserData<T, U>;
36-
unsafe fn set_internal_user_data<T: ?Sized, U>(self, *mut InternalUserData<T, U>);
36+
unsafe fn set_internal_user_data<T: ?Sized, U>(self, _: *mut InternalUserData<T, U>);
3737
}
3838

3939
macro_rules! impl_raw_user_data {

0 commit comments

Comments
 (0)