Skip to content

Commit

Permalink
Add Sync+Send to read callback
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleidawave committed Nov 10, 2024
1 parent 7e21722 commit ced4c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub trait ReadFromFS: Sync + Send {

impl<T> ReadFromFS for T
where
T: Fn(&std::path::Path) -> Option<String>,
T: Fn(&std::path::Path) -> Option<String> + Sync + Send,
{
fn get_content_at_path(&self, path: &std::path::Path) -> Option<String> {
(self)(path)
Expand Down

0 comments on commit ced4c9a

Please sign in to comment.