mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-24 06:55:15 +00:00
manual default
This commit is contained in:
parent
f0addf5300
commit
162e6bbb90
1 changed files with 8 additions and 1 deletions
|
@ -10061,11 +10061,18 @@ enum Usage {
|
|||
Unused,
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct UsageTrackingMap<K, V> {
|
||||
map: MutMap<K, (V, Usage)>,
|
||||
}
|
||||
|
||||
impl<K, V> Default for UsageTrackingMap<K, V> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
map: MutMap::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<K, V> UsageTrackingMap<K, V>
|
||||
where
|
||||
K: std::cmp::Eq + std::hash::Hash,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue