Skip to content

refactor: migrate server to actix-http #384

refactor: migrate server to actix-http

refactor: migrate server to actix-http #384

Triggered via pull request May 27, 2024 05:47
@robjtederobjtede
synchronize #224
actix-http
Status Failure
Total duration 34s
Artifacts

premerge.yml

on: pull_request
build-and-test
19s
build-and-test
linting
27s
linting
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 5 warnings
build-and-test
Process completed with exit code 101.
no method named `crate_` found for enum `Result` in the current scope: src/utils/index.rs#L29
error[E0599]: no method named `crate_` found for enum `Result` in the current scope --> src/utils/index.rs:29:27 | 29 | self.index.lock().crate_(crate_name.as_ref()) | ^^^^^^ method not found in `Result<MutexGuard<'_, GitIndex>, PoisonError<MutexGuard<'_, GitIndex>>>` | = note: the full type name has been written to '/home/runner/work/deps.rs/deps.rs/target/debug/deps/shiny_robots-36f3bbac64197803.long-type-4172696596408091560.txt' = note: consider using `--verbose` to print the full type name to the console note: the method `crate_` exists on the type `std::sync::MutexGuard<'_, crates_index::GitIndex>` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crates-index-2.10.0/src/git/impl_.rs:259:5 | 259 | pub fn crate_(&self, name: &str) -> Option<Crate> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `Result::expect` to unwrap the `std::sync::MutexGuard<'_, crates_index::GitIndex>` value, panicking if the value is a `Result::Err` | 29 | self.index.lock().expect("REASON").crate_(crate_name.as_ref()) | +++++++++++++++++
no method named `update` found for enum `Result` in the current scope: src/utils/index.rs#L50
error[E0599]: no method named `update` found for enum `Result` in the current scope --> src/utils/index.rs:50:45 | 50 | spawn_blocking(move || index.lock().update()) | ^^^^^^ method not found in `Result<MutexGuard<'_, GitIndex>, PoisonError<MutexGuard<'_, GitIndex>>>` | = note: the full type name has been written to '/home/runner/work/deps.rs/deps.rs/target/debug/deps/shiny_robots-36f3bbac64197803.long-type-13719998844214305856.txt' = note: consider using `--verbose` to print the full type name to the console note: the method `update` exists on the type `std::sync::MutexGuard<'_, crates_index::GitIndex>` --> /home/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crates-index-2.10.0/src/git/impl_.rs:234:5 | 234 | pub fn update(&mut self) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using `Result::expect` to unwrap the `std::sync::MutexGuard<'_, crates_index::GitIndex>` value, panicking if the value is a `Result::Err` | 50 | spawn_blocking(move || index.lock().expect("REASON").update()) | +++++++++++++++++
linting
Clippy had exited with the 101 exit code
build-and-test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
linting
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
linting
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
linting
Unexpected input(s) 'clippy', valid inputs are ['toolchain', 'target', 'components', 'cache']
linting
Unexpected input(s) 'clippy', valid inputs are ['toolchain', 'target', 'components', 'cache']