CI: Always update rustup

pull/22/head
Tpt 5 years ago
parent 70f5c25a88
commit 8b539ab7ac
  1. 3
      .github/workflows/build.yml
  2. 3
      lib/src/sparql/algebra.rs

@ -8,6 +8,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- run: rustup update
- run: rustup component add rustfmt - run: rustup component add rustfmt
- run: cargo fmt -- --check - run: cargo fmt -- --check
@ -16,6 +17,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- run: rustup update
- run: rustup component add clippy - run: rustup component add clippy
- run: cargo clippy --all --all-targets - run: cargo clippy --all --all-targets
@ -25,6 +27,7 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
with: with:
submodules: true submodules: true
- run: rustup update
- run: cargo build - run: cargo build
- run: cargo test --verbose --all - run: cargo test --verbose --all
env: env:

@ -770,10 +770,9 @@ impl<'a> fmt::Display for SparqlGraphPattern<'a> {
SparqlGraphPattern(&*a), SparqlGraphPattern(&*a),
SparqlGraphPattern(&*b), SparqlGraphPattern(&*b),
), ),
#[rustfmt::skip] // TODO: Discrepancy between the latest cargo fmt and the one on GitHub CI
GraphPattern::Graph(g, p) => { GraphPattern::Graph(g, p) => {
write!(f, "GRAPH {} {{ {} }}", g, SparqlGraphPattern(&*p),) write!(f, "GRAPH {} {{ {} }}", g, SparqlGraphPattern(&*p),)
}, }
GraphPattern::Extend(p, v, e) => write!( GraphPattern::Extend(p, v, e) => write!(
f, f,
"{} BIND({} AS {})", "{} BIND({} AS {})",

Loading…
Cancel
Save