Skip to content

Commit a8cc944

Browse files
authored
Implementations of Completer should be Send and Sync (#171)
1 parent e052921 commit a8cc944

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

crates/modalkit/src/editing/completion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::{
2323
};
2424

2525
/// A trait for implementing custom completers for an application.
26-
pub trait Completer<I: ApplicationInfo> {
26+
pub trait Completer<I: ApplicationInfo>: Send + Sync {
2727
/// Complete the word just before [Cursor] inside the [EditRope].
2828
///
2929
/// When this method returns, the [Cursor] should be updated to point at the

crates/modalkit/src/util.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
pub use editor_types::util::*;
2-
31
use std::borrow::Borrow;
42
use std::cmp::Ordering;
53
use std::ops::Bound;

0 commit comments

Comments
 (0)