-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
We should release the new packages otherwise I keep receiving the following error
cargo build
Compiling clightningrpc-plugin v0.3.0-beta.8
Compiling clightningrpc-plugin-macros v0.3.0-beta.4
Compiling opentelemetry-plugin v0.1.0 (/home/vincent/gittea/work/cln-opentelemetry/opentelemetry-plugin)
error[E0308]: mismatched types
--> opentelemetry-plugin/src/plugin.rs:58:13
|
58 | let Some(log_url) = plugin.get_opt::<String>("collect-log-url") else {
| ^^^^^^^^^^^^^ ------------------------------------------- this expression has type `Result<std::string::String, PluginError>`
| |
| expected `Result<String, PluginError>`, found `Option<_>`
|
= note: expected enum `Result<std::string::String, PluginError>`
found enum `std::option::Option<_>`
error[E0308]: mismatched types
--> opentelemetry-plugin/src/plugin.rs:69:13
|
69 | let Some(log_prefix) = plugin.get_opt::<String>("collect-tag") else {
| ^^^^^^^^^^^^^^^^ --------------------------------------- this expression has type `Result<std::string::String, PluginError>`
| |
| expected `Result<String, PluginError>`, found `Option<_>`
|
= note: expected enum `Result<std::string::String, PluginError>`
found enum `std::option::Option<_>`
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> opentelemetry-plugin/src/plugin.rs:69:18
|
69 | let Some(log_prefix) = plugin.get_opt::<String>("collect-tag") else {
| ^^^^^^^^^^ doesn't have a size known at compile-time
|
= help: the trait `Sized` is not implemented for `str`
= note: all local variables must have a statically known size
= help: unsized locals are gated as an unstable feature
error[E0277]: the size for values of type `str` cannot be known at compilation time
--> opentelemetry-plugin/src/plugin.rs:69:13
|
69 | let Some(log_prefix) = plugin.get_opt::<String>("collect-tag") else {
| ^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
|
Metadata
Metadata
Assignees
Labels
No labels