Skip to content

Commit 19cdf28

Browse files
committed
feat: add send/sync requirements to core traits
1 parent 78683bd commit 19cdf28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ pub use {
111111

112112
/// Possible element types of input texts and output data structures storing text elements implement this trait.
113113
/// You cannot implement it and don't need to.
114-
pub trait InputElement: Sealed + PrimInt + std::fmt::Debug + std::fmt::Display + 'static {
114+
pub trait InputElement: Sealed + PrimInt + Debug + Display + Send + Sync + 'static {
115115
const RECOMMENDED_EXTRA_SPACE: usize;
116116

117117
type SingleThreadedOutputDispatcher<O: OutputElementOrUndecided>: OutputDispatch<Self, O>;
@@ -121,7 +121,7 @@ pub trait InputElement: Sealed + PrimInt + std::fmt::Debug + std::fmt::Display +
121121

122122
/// Possible element types of output data structures storing indices implement this trait.
123123
/// You cannot implement it and don't need to.
124-
pub trait OutputElement: Sealed + PrimInt + std::fmt::Debug + std::fmt::Display + 'static {
124+
pub trait OutputElement: Sealed + PrimInt + Debug + Display + Send + Sync + 'static {
125125
type SingleThreaded8InputFunctions: LibsaisFunctionsSmallAlphabet<u8, Self>
126126
+ LibsaisLcpFunctions<u8, Self>;
127127
type SingleThreaded16InputFunctions: LibsaisFunctionsSmallAlphabet<u16, Self>
@@ -207,7 +207,7 @@ impl LibsaisError {
207207

208208
impl Display for LibsaisError {
209209
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
210-
<LibsaisError as std::fmt::Debug>::fmt(self, f)
210+
<LibsaisError as Debug>::fmt(self, f)
211211
}
212212
}
213213

0 commit comments

Comments
 (0)