Skip to content

An attempt to convert into std::sync::Arc<str> from std::convert::From<&str> #10

Closed
@Relrin

Description

@Relrin

Hello!

I'm trying building a test project with dependencies (code, and so on) that were mentioned in PR#2 for lapin-futures-tls crate, but instead of getting a successfully compiled code, I'm receiving the following error:

   Compiling coco v0.1.1
   Compiling num-integer v0.1.35
   Compiling unreachable v1.0.0
   Compiling tokio-timer v0.1.2
   Compiling base64 v0.6.0
   Compiling idna v0.1.4
   Compiling bytes v0.4.6
   Compiling abstract-ns v0.4.2
error[E0277]: the trait bound `std::sync::Arc<str>: std::convert::From<&str>` is not satisfied
  --> /Users/savicvalera/.cargo/registry/src/github.com-1ecc6299db9ec823/abstract-ns-0.4.2/src/name.rs:67:23
   |
67 |         Ok(Name(value.into()))
   |                       ^^^^ the trait `std::convert::From<&str>` is not implemented for `std::sync::Arc<str>`
   |
   = help: the following implementations were found:
             <std::sync::Arc<T> as std::convert::From<T>>
   = note: required because of the requirements on the impl of `std::convert::Into<std::sync::Arc<str>>` for `&str`

error: aborting due to previous error

error: Could not compile `abstract-ns`.
warning: build failed, waiting for other jobs to finish...
error: build failed

Do you have any ideas how to fix this issue? I'd tried to clean up cargo caches and indices, but it wasn't helped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions