diff options
Diffstat (limited to 'mingling_core/src/comp/suggest.rs')
| -rw-r--r-- | mingling_core/src/comp/suggest.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mingling_core/src/comp/suggest.rs b/mingling_core/src/comp/suggest.rs index 03842e1..bd5dea6 100644 --- a/mingling_core/src/comp/suggest.rs +++ b/mingling_core/src/comp/suggest.rs @@ -243,7 +243,7 @@ mod tests { #[test] fn test_deref_suggest() { let s: Suggest = ["hello"].into(); - let set: &BTreeSet<SuggestItem> = &*s; + let set: &BTreeSet<SuggestItem> = &s; assert_eq!(set.len(), 1); } @@ -354,7 +354,7 @@ mod tests { #[test] fn test_ord_by_suggest_text() { - let mut items = vec![ + let mut items = [ SuggestItem::new("z".to_string()), SuggestItem::new("a".to_string()), SuggestItem::new("m".to_string()), @@ -367,7 +367,7 @@ mod tests { #[test] fn test_ord_with_description() { - let mut items = vec