Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Fixed actions file #41

Merged
merged 10 commits into from
Oct 14, 2024
15 changes: 9 additions & 6 deletions .github/workflows/pull-requests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Pull Request Actions

on:
pull_request_target:
types: [ assigned, opened, synchronize ]
pull_request:
branches:
- master

env:
CARGO_TERM_COLOR: always
Expand All @@ -11,21 +12,23 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose

fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Test
run: git status
- name: Fmt
run: cargo fmt --all --verbose --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install clippy
run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
Expand All @@ -37,6 +40,6 @@ jobs:
needs: [build, clippy, fmt]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Test
run: cargo test --all --verbose
5 changes: 1 addition & 4 deletions src/searcher/elastic/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,7 @@ where
extracted_values.push(extracted);
}

let founded_documents = extracted_values
.into_iter()
.flatten()
.collect::<Vec<T>>();
let founded_documents = extracted_values.into_iter().flatten().collect::<Vec<T>>();

Paginated::new_with_opt_id(founded_documents, scroll_id)
}
Loading