Skip to content

Commit

Permalink
Implement Candidate for Rc<str>
Browse files Browse the repository at this point in the history
  • Loading branch information
fsktom committed Aug 13, 2023
1 parent 5e63f1b commit 8d0da03
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/completion.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ impl Candidate for &'_ str {
}
}

impl Candidate for Rc<str> {
fn display(&self) -> &str {
self
}

fn replacement(&self) -> &str {
self
}
}

/// Completion candidate pair
#[derive(Clone)]
pub struct Pair {
Expand Down

0 comments on commit 8d0da03

Please sign in to comment.