Skip to content

Commit

Permalink
Fix clippy errs.
Browse files Browse the repository at this point in the history
Signed-off-by: lucasliang <[email protected]>
  • Loading branch information
LykxSassinator committed Nov 8, 2024
1 parent cc2e9e1 commit 2f0d630
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04, macos-13 ]
os: [ ubuntu-22.04, macos-13 ]
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -26,7 +26,7 @@ jobs:
with:
sharedKey: ${{ matrix.os }}
- name: Cache dependencies
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install --locked grcov --version 0.8.9; fi
- name: Format
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
RUST_BACKTRACE: 1
EXTRA_CARGO_ARGS: '--verbose'
- name: Run asan tests
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: ${{ matrix.os == 'ubuntu-22.04' }}
run: make test
env:
RUST_BACKTRACE: 1
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-20.04 ]
os: [ ubuntu-22.04 ]
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -79,7 +79,7 @@ jobs:
EXTRA_CARGO_ARGS: '--verbose'
WITH_STABLE_TOOLCHAIN: 'force'
coverage:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
needs: nightly
steps:
- uses: actions/checkout@v2
Expand All @@ -94,7 +94,7 @@ jobs:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v1
with:
sharedKey: ubuntu-20.04
sharedKey: ubuntu-22.04
- name: Install grcov
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install --locked grcov --version 0.8.9; fi
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2563,7 +2563,7 @@ pub(crate) mod tests {
..Default::default()
};
let fs = Arc::new(DeleteMonitoredFileSystem::new());
let engine = Arc::new(RaftLogEngine::open_with_file_system(cfg, fs.clone()).unwrap());
let engine = Arc::new(RaftLogEngine::open_with_file_system(cfg, fs).unwrap());
let entry_data = vec![b'x'; 128];
// Set up a concurrent write with purge, and fetch.
let mut vec: Vec<Entry> = Vec::new();
Expand Down

0 comments on commit 2f0d630

Please sign in to comment.