Skip to content

fix merge conflicts from master #289

fix merge conflicts from master

fix merge conflicts from master #289

Triggered via push November 26, 2023 06:52
Status Failure
Total duration 1m 41s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

Lint.yaml

on: push
Matrix: rust
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 8 warnings
the name `debug` is defined multiple times: crates/s3/src/lib.rs#L27
error[E0252]: the name `debug` is defined multiple times --> crates/s3/src/service.rs:27:15 | 24 | use log::{debug, error, info, trace, warn}; | ----- previous import of the macro `debug` here ... 27 | use tracing::{debug, error, info, trace, warn}; | ^^^^^ `debug` reimported here | = note: `debug` must be defined only once in the macro namespace of this module help: you can use `as` to change the binding name of the import | 27 | use tracing::{debug as other_debug, error, info, trace, warn}; | ~~~~~~~~~~~~~~~~~~~~
the name `error` is defined multiple times: crates/s3/src/lib.rs#L27
error[E0252]: the name `error` is defined multiple times --> crates/s3/src/service.rs:27:22 | 24 | use log::{debug, error, info, trace, warn}; | ----- previous import of the macro `error` here ... 27 | use tracing::{debug, error, info, trace, warn}; | ^^^^^ `error` reimported here | = note: `error` must be defined only once in the macro namespace of this module help: you can use `as` to change the binding name of the import | 27 | use tracing::{debug, error as other_error, info, trace, warn}; | ~~~~~~~~~~~~~~~~~~~~
the name `info` is defined multiple times: crates/s3/src/lib.rs#L27
error[E0252]: the name `info` is defined multiple times --> crates/s3/src/service.rs:27:29 | 24 | use log::{debug, error, info, trace, warn}; | ---- previous import of the macro `info` here ... 27 | use tracing::{debug, error, info, trace, warn}; | ^^^^ `info` reimported here | = note: `info` must be defined only once in the macro namespace of this module help: you can use `as` to change the binding name of the import | 27 | use tracing::{debug, error, info as other_info, trace, warn}; | ~~~~~~~~~~~~~~~~~~
the name `trace` is defined multiple times: crates/s3/src/lib.rs#L27
error[E0252]: the name `trace` is defined multiple times --> crates/s3/src/service.rs:27:35 | 24 | use log::{debug, error, info, trace, warn}; | ----- previous import of the macro `trace` here ... 27 | use tracing::{debug, error, info, trace, warn}; | ^^^^^ `trace` reimported here | = note: `trace` must be defined only once in the macro namespace of this module help: you can use `as` to change the binding name of the import | 27 | use tracing::{debug, error, info, trace as other_trace, warn}; | ~~~~~~~~~~~~~~~~~~~~
the name `warn` is defined multiple times: crates/s3/src/lib.rs#L27
error[E0252]: the name `warn` is defined multiple times --> crates/s3/src/service.rs:27:42 | 24 | use log::{debug, error, info, trace, warn}; | ---- previous import of the macro `warn` here ... 27 | use tracing::{debug, error, info, trace, warn}; | ^^^^ `warn` reimported here | = note: `warn` must be defined only once in the macro namespace of this module help: you can use `as` to change the binding name of the import | 27 | use tracing::{debug, error, info, trace, warn as other_warn}; | ~~~~~~~~~~~~~~~~~~
expected only a single `name` argument: crates/s3/src/lib.rs#L104
error: expected only a single `name` argument --> crates/s3/src/service.rs:104:107 | 104 | #[cfg_attr(feature = "tracing", ::tracing::instrument(name = "remi.s3.init", skip_all, remi.service = "s3", bucket = self.config.buck... | ^^^^
expected only a single `name` argument: crates/s3/src/lib.rs#L172
error: expected only a single `name` argument --> crates/s3/src/service.rs:172:79 | 172 | tracing::instrument(name = "remi.s3.open", skip(self), remi.service = "s3", path = tracing::field::display(path.display())) | ^^^^
not all trait items implemented, missing: `open`: crates/s3/src/lib.rs#L101
error[E0046]: not all trait items implemented, missing: `open` --> crates/s3/src/service.rs:101:1 | 101 | impl StorageService for S3StorageService { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `open` in implementation | = help: implement the missing item: `fn open<P>(&'life0 self, _: P) -> std::pin::Pin<std::boxed::Box<(dyn std::future::Future<Output = std::result::Result<std::option::Option<bytes::Bytes>, std::io::Error>> + std::marker::Send + 'async_trait)>> where P: std::convert::AsRef, P: std::marker::Send { todo!() }`
no function or associated item named `deserialize` found for struct `std::string::String` in the current scope: crates/s3/src/lib.rs#L205
error[E0599]: no function or associated item named `deserialize` found for struct `std::string::String` in the current scope --> crates/s3/src/config.rs:205:29 | 205 | let s = String::deserialize(deserializer)?; | ^^^^^^^^^^^ function or associated item not found in `String` | = help: items from traits can only be used if the trait is in scope help: the following trait is implemented but not in scope; perhaps add a `use` for it: | 190 + use crate::config::_::_serde::Deserialize; |
aborting due to 9 previous errors; 5 warnings emitted
error: aborting due to 9 previous errors; 5 warnings emitted
Rust CI [stable on Linux (x86_64)]
Process completed with exit code 101.
Rust CI [nightly on Windows]
The job was canceled because "stable_ubuntu-latest" failed.
Rust CI [nightly on Windows]
The operation was canceled.
Rust CI [stable on Windows]
The job was canceled because "stable_ubuntu-latest" failed.
Rust CI [stable on Windows]
The operation was canceled.
Rust CI [nightly on Linux (x86_64)]
The job was canceled because "stable_ubuntu-latest" failed.
Rust CI [nightly on Linux (x86_64)]
The operation was canceled.
Rust CI [stable on macOS]
The job was canceled because "stable_ubuntu-latest" failed.
Rust CI [stable on macOS]
The operation was canceled.
Rust CI [nightly on macOS]
The job was canceled because "stable_ubuntu-latest" failed.
Rust CI [nightly on macOS]
The operation was canceled.
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: crates/fs/src/lib.rs#L71
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> crates/fs/src/content_type.rs:71:5 | 71 | / match serde_json::from_slice::<()>(data) { 72 | | Ok(_) => return String::from("application/json; charset=utf-8"), 73 | | Err(_) => {} 74 | | } | |_____^ help: try: `if let Ok(_) = serde_json::from_slice::<()>(data) { return String::from("application/json; charset=utf-8") }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `#[warn(clippy::single_match)]` on by default
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`: crates/fs/src/lib.rs#L77
warning: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let` --> crates/fs/src/content_type.rs:77:5 | 77 | / match serde_yaml::from_slice::<()>(data) { 78 | | Ok(_) => return String::from("application/yaml; charset=utf-8"), 79 | | Err(_) => {} 80 | | } | |_____^ help: try: `if let Ok(_) = serde_yaml::from_slice::<()>(data) { return String::from("application/yaml; charset=utf-8") }` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match
2 warnings emitted
warning: 2 warnings emitted
unused import: `bytes::Bytes`: crates/s3/src/lib.rs#L22
warning: unused import: `bytes::Bytes` --> crates/s3/src/service.rs:22:5 | 22 | use bytes::Bytes; | ^^^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
unused imports: `debug`, `error`, `info`, `trace`, `warn`: crates/s3/src/lib.rs#L24
warning: unused imports: `debug`, `error`, `info`, `trace`, `warn` --> crates/s3/src/service.rs:24:11 | 24 | use log::{debug, error, info, trace, warn}; | ^^^^^ ^^^^^ ^^^^ ^^^^^ ^^^^
unused imports: `debug`, `error`, `info`, `trace`, `warn`: crates/s3/src/lib.rs#L27
warning: unused imports: `debug`, `error`, `info`, `trace`, `warn` --> crates/s3/src/service.rs:27:15 | 27 | use tracing::{debug, error, info, trace, warn}; | ^^^^^ ^^^^^ ^^^^ ^^^^^ ^^^^
unused import: `BucketCannedAcl`: crates/s3/src/lib.rs#L32
warning: unused import: `BucketCannedAcl` --> crates/s3/src/service.rs:32:13 | 32 | types::{BucketCannedAcl, Object}, | ^^^^^^^^^^^^^^^
unused macro definition: `to_io_error`: crates/s3/src/lib.rs#L38
warning: unused macro definition: `to_io_error` --> crates/s3/src/service.rs:38:14 | 38 | macro_rules! to_io_error { | ^^^^^^^^^^^ | = note: `#[warn(unused_macros)]` on by default