We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca63783 commit 338ebb6Copy full SHA for 338ebb6
chalk-solve/src/display/state.rs
@@ -51,7 +51,7 @@ pub struct IdAliasStore<T> {
51
next_unused_for_name: BTreeMap<String, u32>,
52
}
53
54
-impl<T: Ord> Default for IdAliasStore<T> {
+impl<T> Default for IdAliasStore<T> {
55
fn default() -> Self {
56
IdAliasStore {
57
aliases: BTreeMap::default(),
@@ -60,7 +60,7 @@ impl<T: Ord> Default for IdAliasStore<T> {
60
61
62
63
-impl<T: Copy + Ord> IdAliasStore<T> {
+impl<T: Copy> IdAliasStore<T> {
64
fn alias_for_id_name(&mut self, id: T, name: String) -> String {
65
let next_unused_for_name = &mut self.next_unused_for_name;
66
let alias = *self.aliases.entry(id).or_insert_with(|| {
0 commit comments