mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 06:55:37 +01:00
Compare commits
3 Commits
6fa0f491fa
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e0fe9849c | |||
| f8d9a50a66 | |||
|
|
d83c63e25a |
2
.github/workflows/rust-clippy.yml
vendored
2
.github/workflows/rust-clippy.yml
vendored
@@ -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