File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ tauri : minor:enhance
3
+ ---
4
+
5
+ Changed the parameter type of ` AppHandle::remove_plugin ` from ` &'static str ` to ` &str ` .
Original file line number Diff line number Diff line change @@ -526,7 +526,7 @@ impl<R: Runtime> AppHandle<R> {
526
526
/// Ok(())
527
527
/// });
528
528
/// ```
529
- pub fn remove_plugin ( & self , plugin : & ' static str ) -> bool {
529
+ pub fn remove_plugin ( & self , plugin : & str ) -> bool {
530
530
self . manager ( ) . plugins . lock ( ) . unwrap ( ) . unregister ( plugin)
531
531
}
532
532
Original file line number Diff line number Diff line change @@ -886,7 +886,7 @@ impl<R: Runtime> PluginStore<R> {
886
886
}
887
887
888
888
/// Removes the plugin with the given name from the store.
889
- pub fn unregister ( & mut self , plugin : & ' static str ) -> bool {
889
+ pub fn unregister ( & mut self , plugin : & str ) -> bool {
890
890
let len = self . store . len ( ) ;
891
891
self . store . retain ( |p| p. name ( ) != plugin) ;
892
892
len != self . store . len ( )
You can’t perform that action at this time.
0 commit comments