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.
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
Change to the following code runs successfully
The type name is "versioned types::A" now.
Maybe we should use another method to get the struct name.