laysakura / trie-rs

Memory efficient trie (prefix tree) library based on LOUDS
https://crates.io/crates/trie-rs
Apache License 2.0
90 stars 10 forks source link

private type `KeyValue<K, V>` in public interface #26

Closed TheDan64 closed 4 months ago

TheDan64 commented 5 months ago

In rust 1.73.0, I get this compiler error:

error[E0446]: private type `KeyValue<K, V>` in public interface
  --> trie-rs-0.2.0/src/map.rs:26:1
   |
9  | struct KeyValue<K,V>(K,
   | -------------------- `KeyValue<K, V>` declared as private
...
26 | impl<K: Clone, V: Clone> Trie<K,V> where KeyValue<K,V>: Ord + Clone {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ can't leak private type
shanecelis commented 4 months ago

Ah, my mistake. Should be fixed now in v0.3.0.