mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 06:55:37 +01:00
Compare commits
5 Commits
61e502c02b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e0fe9849c | |||
| f8d9a50a66 | |||
|
|
d83c63e25a | ||
| 6fa0f491fa | |||
|
|
aacfcf2eae |
4
.github/workflows/rust-clippy.yml
vendored
4
.github/workflows/rust-clippy.yml
vendored
@@ -28,7 +28,7 @@ jobs:
|
|||||||
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
|
uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af #@v1
|
||||||
@@ -49,7 +49,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Upload analysis results to GitHub
|
- name: Upload analysis results to GitHub
|
||||||
uses: github/codeql-action/upload-sarif@v3
|
uses: github/codeql-action/upload-sarif@v4
|
||||||
with:
|
with:
|
||||||
sarif_file: rust-clippy-results.sarif
|
sarif_file: rust-clippy-results.sarif
|
||||||
wait-for-processing: true
|
wait-for-processing: true
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ pub async fn download<'a>(
|
|||||||
Some((response, is_zip))
|
Some((response, is_zip))
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn download_chain<'a>(
|
pub async fn download_chain(
|
||||||
book: BookWithRemote,
|
book: BookWithRemote,
|
||||||
file_type: String,
|
file_type: String,
|
||||||
source_config: config::SourceConfig,
|
source_config: config::SourceConfig,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ pub struct DownloadResult {
|
|||||||
|
|
||||||
pub fn get_response_async_read(it: Response) -> impl AsyncRead {
|
pub fn get_response_async_read(it: Response) -> impl AsyncRead {
|
||||||
it.bytes_stream()
|
it.bytes_stream()
|
||||||
.map_err(|e| std::io::Error::new(std::io::ErrorKind::Other, e))
|
.map_err(std::io::Error::other)
|
||||||
.into_async_read()
|
.into_async_read()
|
||||||
.compat()
|
.compat()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user