-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop
Description
Description
The desktop app fails to compile with Rust due to missing StoreExt trait import, causing three E0599 errors when calling .store() method on AppHandle.
Error Messages
error[E0599]: no method named `store` found for struct `AppHandle<R>`
--> src/lib.rs:98:10
|
97 | let store = app
| _________________-
98 | | .store(SETTINGS_STORE)
| |_________-^^^^^
|
::: /build/cargo-vendor-dir/tauri-plugin-store-2.4.1/src/lib.rs:260:8
|
260 | fn store(&self, path: impl AsRef<Path>) -> Result<Arc<Store<R>>>;
| ----- the method is available for `AppHandle` here
|
= help: items from traits can only be used if the trait is in scope
help: trait `StoreExt` which provides `store` is implemented but not in scope; perhaps you want to import it
|
1 + use tauri_plugin_store::StoreExt;
Solution
Add the missing import:
use tauri_plugin_store::StoreExt;Also fixes an unused mut warning on window_builder by using variable shadowing for the macOS-specific configuration.
Affected Code
packages/desktop/src-tauri/src/lib.rs lines 98, 111, 254, 304
Verification
Compilation succeeds with Rust 1.90.0+ after applying the fix.
Metadata
Metadata
Assignees
Labels
webRelates to opencode on web / desktopRelates to opencode on web / desktop