diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d29eba2..37aaa8b2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,20 +51,6 @@ jobs: - run: cargo check --lib --all-features - build_result: - name: Result - runs-on: ubuntu-latest - needs: - - "ci" - - steps: - - name: Mark the job as successful - run: exit 0 - if: success() - - name: Mark the job as unsuccessful - run: exit 1 - if: ${{ !success() }} - lint: name: Lint runs-on: ubuntu-latest @@ -86,3 +72,20 @@ jobs: - name: Run clippy run: cargo clippy --all-features --all-targets -- -D warnings + + build_result: + name: Result + runs-on: ubuntu-latest + needs: + - ci + - lint + - msrv + + steps: + - name: Success + if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }} + run: exit 0 + - name: Failure + if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') + run: exit 1 + diff --git a/html5ever/examples/arena.rs b/html5ever/examples/arena.rs index 7a2b4980..acc05705 100644 --- a/html5ever/examples/arena.rs +++ b/html5ever/examples/arena.rs @@ -349,4 +349,4 @@ fn main() { let arena = typed_arena::Arena::new(); html5ever_parse_slice_into_arena(&bytes, &arena); -} \ No newline at end of file +} diff --git a/html5ever/examples/noop-tokenize.rs b/html5ever/examples/noop-tokenize.rs index f354a7b8..ade4571b 100644 --- a/html5ever/examples/noop-tokenize.rs +++ b/html5ever/examples/noop-tokenize.rs @@ -16,7 +16,6 @@ use std::io; use html5ever::tendril::*; use html5ever::tokenizer::{BufferQueue, Token, TokenSink, TokenSinkResult, Tokenizer}; - /// In our case, our sink only contains a tokens vector struct Sink(Vec); @@ -36,7 +35,7 @@ fn main() { // Read HTML from standard input let mut chunk = ByteTendril::new(); io::stdin().read_to_tendril(&mut chunk).unwrap(); - + let mut input = BufferQueue::default(); input.push_back(chunk.try_reinterpret().unwrap());