Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release the new packages #136

Open
vincenzopalazzo opened this issue Oct 5, 2024 · 0 comments
Open

release the new packages #136

vincenzopalazzo opened this issue Oct 5, 2024 · 0 comments

Comments

@vincenzopalazzo
Copy link
Collaborator

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
    |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant