Skip to content

Example run error #10

@khassar00

Description

@khassar00

rust version:
nightly-x86_64-pc-windows-msvc - rustc 1.85.0-nightly (6b6a867ae 2024-11-27)
versioned_types example:
The following code runs incorrectly

    let mut version_map = DefaultVersionMap::new();
    version_map.insert("A", 1);

Change to the following code runs successfully

    let mut version_map = DefaultVersionMap::new();
    version_map.insert(std::any::type_name::<A>(), 1);

The type name is "versioned types::A" now.
Maybe we should use another method to get the struct name.

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