From beac1222d7a39236ee434a31f47b2cd052d63e17 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 8 Nov 2019 05:41:34 +0900 Subject: [PATCH 1/2] Remove deprecated action --- .github/workflows/clippy.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index f33cb5fa..8649080d 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -6,15 +6,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - id: component - uses: actions-rs/components-nightly@v1 - with: - component: clippy - uses: actions-rs/toolchain@v1 with: - toolchain: ${{ steps.component.outputs.toolchain }} + toolchain: nightly + components: clippy override: true - - run: rustup component add clippy - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} From ec9e2a595a74631f48248dcef17647fbdb157f11 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Fri, 8 Nov 2019 06:45:50 +0900 Subject: [PATCH 2/2] Fix fmt and some doc --- bastion/src/children.rs | 2 ++ bastion/src/lib.rs | 6 +++--- bastion/src/supervisor.rs | 4 ++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bastion/src/children.rs b/bastion/src/children.rs index 14836eba..208d6df9 100644 --- a/bastion/src/children.rs +++ b/bastion/src/children.rs @@ -266,6 +266,8 @@ impl Children { /// # Bastion::block_until_stopped(); /// # } /// ``` + /// + /// [`with_exec`]: #method.with_exec pub fn with_redundancy(mut self, redundancy: usize) -> Self { self.redundancy = redundancy; self diff --git a/bastion/src/lib.rs b/bastion/src/lib.rs index a0c47591..4efdee18 100644 --- a/bastion/src/lib.rs +++ b/bastion/src/lib.rs @@ -37,9 +37,9 @@ //! [lightproc]: https://docs.rs/lightproc/ //! -#![doc(html_logo_url = "https://raw.githubusercontent.com/bastion-rs/bastion/master/img/bastion-logo.png")] - - +#![doc( + html_logo_url = "https://raw.githubusercontent.com/bastion-rs/bastion/master/img/bastion-logo.png" +)] // Force missing implementations #![warn(missing_docs)] #![warn(missing_debug_implementations)] diff --git a/bastion/src/supervisor.rs b/bastion/src/supervisor.rs index 86e41d7f..bc9411c1 100644 --- a/bastion/src/supervisor.rs +++ b/bastion/src/supervisor.rs @@ -421,7 +421,7 @@ impl Supervisor { /// of its elements panicked or returned an error). /// /// The default strategy is - /// [`SupervisorStrategy::OneForOne`]. + /// [`SupervisionStrategy::OneForOne`]. /// /// # Arguments /// @@ -874,7 +874,7 @@ impl SupervisorRef { /// returned an error). /// /// The default strategy `Supervisor` is - /// [`SupervisorStrategy::OneForOne`]. + /// [`SupervisionStrategy::OneForOne`]. /// /// This method returns `()` if it succeeded, or `Err(())` /// otherwise.