Added dictionary plugin and switched from a Mutex to an RwLock in the anyrun_plugin crate
This change means that `get_matches` no longer has access to a mutable version of the state of the plugin. A redesign is needed to allow for this if needed.
This commit is contained in:
@@ -69,7 +69,7 @@ pub fn init(_config_dir: RString) -> State {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_matches(input: RString, state: &mut State) -> RVec<Match> {
|
||||
pub fn get_matches(input: RString, state: &State) -> RVec<Match> {
|
||||
match &state.selection {
|
||||
Some(index_entry) => {
|
||||
let path = index_entry.path.to_string_lossy();
|
||||
|
||||
Reference in New Issue
Block a user