oscartbeaumont / tauri-specta

Completely typesafe Tauri commands
MIT License
289 stars 26 forks source link

fix: Update the tauri version to resolve tauri error #94

Closed nashaofu closed 1 month ago

KarlK90 commented 1 month ago

Thanks! I'm running into the same error:

error[E0308]: mismatched types
    --> /home/karlk/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-2.0.0-beta.17/src/webview/mod.rs:1078:5
     |
1077 |   pub fn url(&self) -> Url {
     |                        --- expected `url::Url` because of return type
1078 |     self.webview.dispatcher.url().unwrap()
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Url`, found `String`

This PR fixes it for me.

oscartbeaumont commented 1 month ago

Thanks for this PR but it only upgrades the version for the main crate. The version also needs to be bumped for the docs and examples to ensure it's working.