Skip to content

Commit

Permalink
Attempt to fix MSRV and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Finomnis committed Oct 12, 2023
1 parent 90be21d commit 9104d11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,22 @@ jobs:
- name: Run cargo test
run: cargo test -- --test-threads 1

test_msrv:
name: Test Suite (for MSRV)
msrv:
name: Build for MSRV
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-D warnings"
steps:
- name: Checkout sources
uses: actions/checkout@v3

- name: Install stable toolchain
- name: Install MSRV toolchain
uses: dtolnay/[email protected]

#- uses: Swatinem/rust-cache@v1

- name: Run cargo test
run: cargo test -- --test-threads 1
- name: Run cargo build
run: cargo build

lints:
name: Lints
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
runs-on: ubuntu-latest
environment: production
if: github.event_name == 'release'
needs: [build, test, lints, docs, leaks]
needs: [build, test, msrv, lints, docs, leaks]
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions src/into_subsystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ where
/// Returning an error automatically initiates a shutdown.
///
/// For more information about subsystem functions, see
/// [`Toplevel::start()`](crate::Toplevel::start) and [`SubsystemHandle::start()`](crate::SubsystemHandle::start).
/// [`SubsystemHandle::start()`](crate::SubsystemHandle::start).
async fn run(self, subsys: SubsystemHandle<ErrWrapper>) -> Result<(), Err>;

/// Converts the object into a type that can be passed into
/// [`Toplevel::start()`](crate::Toplevel::start) and [`SubsystemHandle::start()`](crate::SubsystemHandle::start).
/// [`SubsystemHandle::start()`](crate::SubsystemHandle::start).
fn into_subsystem(self) -> Box<SubsystemFunction<Err, ErrWrapper>> {
Box::new(|handle: SubsystemHandle<ErrWrapper>| {
Box::pin(async move { self.run(handle).await })
Expand Down

0 comments on commit 9104d11

Please sign in to comment.