Skip to content

typemap_rev 0.4 removed IntoIterator #1322

@XAMPPRocky

Description

@XAMPPRocky

Currently we can't upgrade that dependency due to the new version removing the implementation of IntoIterator which causes the following compile error in quilkin.

error[E0599]: the method `into_iter` exists for struct `TypeMap<dyn CloneDebuggableStorage>`, but its trait bounds were not satisfied
   --> src/config.rs:184:21
    |
184 |                 &tm.into_iter().collect::<std::collections::BTreeMap<_, _>>(),
    |                     ^^^^^^^^^
    |
   ::: /Users/erin.power/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/typemap_rev-0.4.0/src/lib.rs:100:1
    |
100 | pub struct TypeMap<S: ?Sized = DefaultStorage>(HashMap<TypeId, Box<S>>);
    | ---------------------------------------------- doesn't satisfy `TypeMap<dyn CloneDebuggableStorage>: IntoIterator` or `TypeMap<dyn CloneDebuggableStorage>: Iterator`
    |
    = note: the following trait bounds were not satisfied:
            `TypeMap<dyn CloneDebuggableStorage>: Iterator`
            which is required by `TypeMap<dyn CloneDebuggableStorage>: IntoIterator`
            `&TypeMap<dyn CloneDebuggableStorage>: Iterator`
            which is required by `&TypeMap<dyn CloneDebuggableStorage>: IntoIterator`
            `&mut TypeMap<dyn CloneDebuggableStorage>: Iterator`
            which is required by `&mut TypeMap<dyn CloneDebuggableStorage>: IntoIterator`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions