Skip to content

feature: set up scrape worker with endpoint to crawl #3455

feature: set up scrape worker with endpoint to crawl

feature: set up scrape worker with endpoint to crawl #3455

Triggered via pull request September 11, 2024 02:42
Status Failure
Total duration 3m 35s
Artifacts

rust-tests.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
this function depends on never type fallback being `()`: src/operators/crawl_operator.rs#L136
error: this function depends on never type fallback being `()` --> src/operators/crawl_operator.rs:136:1 | 136 | / pub async fn create_crawl_request( 137 | | url: String, 138 | | dataset_id: uuid::Uuid, 139 | | scrape_id: uuid::Uuid, 140 | | pool: web::Data<Pool>, 141 | | redis_pool: web::Data<RedisPool>, 142 | | ) -> Result<uuid::Uuid, ServiceError> { | |_____________________________________^ | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #123748 <https://github.com/rust-lang/rust/issues/123748> = help: specify the types explicitly note: in edition 2024, the requirement `!: redis::FromRedisValue` will fail --> src/operators/crawl_operator.rs:172:10 | 172 | .query_async(&mut *redis_conn) | ^^^^^^^^^^^ = note: `-D dependency-on-unit-never-type-fallback` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(dependency_on_unit_never_type_fallback)]`
this manual char comparison can be written more succinctly: src/operators/crawl_operator.rs#L296
error: this manual char comparison can be written more succinctly --> src/operators/crawl_operator.rs:296:18 | 296 | .replace(|c| c == '-', ""); | ^^^^^^^^^^^^ help: consider using a `char`: `'-'` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison = note: `-D clippy::manual-pattern-char-comparison` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::manual_pattern_char_comparison)]`
this manual char comparison can be written more succinctly: src/operators/crawl_operator.rs#L310
error: this manual char comparison can be written more succinctly --> src/operators/crawl_operator.rs:310:48 | 310 | chunk_html = chunk_html.trim().replace(|c| c == '-', ""); | ^^^^^^^^^^^^ help: consider using a `char`: `'-'` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_pattern_char_comparison
clippy_check
Clippy has exited with exit code 101