Skip to content

Commit

Permalink
Fix clippy lints, and update CI actions (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem authored Apr 3, 2024
1 parent 097054e commit c9861cc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: rustup toolchain install stable --profile minimal --component rustfmt --component clippy --no-self-update

Expand All @@ -29,7 +29,7 @@ jobs:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: rustup toolchain install stable --profile minimal --no-self-update

Expand All @@ -41,7 +41,7 @@ jobs:
name: "Unit Tests - all features"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: rustup toolchain install stable --profile minimal --no-self-update

Expand All @@ -55,7 +55,7 @@ jobs:
env:
RUSTDOCFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: rustup toolchain install stable --profile minimal --component rust-docs --no-self-update

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
name: "Release a new version"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_RELEASE_PAT }}
fetch-depth: 0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- run: |
rustup toolchain install ${{ matrix.rust }} --profile minimal --component clippy --no-self-update
Expand Down
1 change: 0 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![cfg_attr(not(any(unix, windows, target_os = "redox")), allow(unused_imports))]

use std::convert::AsRef;
use std::env;
use std::fs;
use std::io::Read;
Expand Down
3 changes: 2 additions & 1 deletion src/hermes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ impl Encodable for SourceMapHermes {
fn as_raw_sourcemap(&self) -> RawSourceMap {
// TODO: need to serialize the `HermesFunctionMap` mappings
let mut rsm = self.sm.as_raw_sourcemap();
rsm.x_facebook_sources = self.raw_facebook_sources.clone();
rsm.x_facebook_sources
.clone_from(&self.raw_facebook_sources);
rsm
}
}
Expand Down

0 comments on commit c9861cc

Please sign in to comment.