Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-core/src/auto_pairs.rs')
| -rw-r--r-- | helix-core/src/auto_pairs.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-core/src/auto_pairs.rs b/helix-core/src/auto_pairs.rs index 85329040..072c93d0 100644 --- a/helix-core/src/auto_pairs.rs +++ b/helix-core/src/auto_pairs.rs @@ -17,7 +17,7 @@ pub const DEFAULT_PAIRS: &[(char, char)] = &[ ]; /// The type that represents the collection of auto pairs, -/// keyed by both opener and closer. +/// keyed by the opener. #[derive(Debug, Clone)] pub struct AutoPairs(HashMap<char, Pair>); @@ -75,9 +75,9 @@ impl From<(&char, &char)> for Pair { impl AutoPairs { /// Make a new AutoPairs set with the given pairs and default conditions. - pub fn new<'a, V, A>(pairs: V) -> Self + pub fn new<'a, V: 'a, A>(pairs: V) -> Self where - V: IntoIterator<Item = A> + 'a, + V: IntoIterator<Item = A>, A: Into<Pair>, { let mut auto_pairs = HashMap::new(); |