Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/lib.rs')
-rw-r--r--crates/ide/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/lib.rs b/crates/ide/src/lib.rs
index 82dbcde4c0..b3b8deb61f 100644
--- a/crates/ide/src/lib.rs
+++ b/crates/ide/src/lib.rs
@@ -409,7 +409,7 @@ impl Analysis {
self.with_db(|db| typing::on_enter(db, position))
}
- pub const SUPPORTED_TRIGGER_CHARS: &'static str = typing::TRIGGER_CHARS;
+ pub const SUPPORTED_TRIGGER_CHARS: &[char] = typing::TRIGGER_CHARS;
/// Returns an edit which should be applied after a character was typed.
///
@@ -421,7 +421,7 @@ impl Analysis {
char_typed: char,
) -> Cancellable<Option<SourceChange>> {
// Fast path to not even parse the file.
- if !typing::TRIGGER_CHARS.contains(char_typed) {
+ if !typing::TRIGGER_CHARS.contains(&char_typed) {
return Ok(None);
}