fix example
This commit is contained in:
parent
52acfb3b3d
commit
6441a58a05
17 changed files with 190 additions and 81 deletions
|
@ -2,7 +2,7 @@ use anyhow::ensure;
|
|||
use tauri_sys::app;
|
||||
|
||||
pub async fn get_name() -> anyhow::Result<()> {
|
||||
let name = app::get_name().await;
|
||||
let name = app::get_name().await?;
|
||||
|
||||
ensure!(name == "tauri-sys-test");
|
||||
|
||||
|
@ -22,7 +22,7 @@ pub async fn get_version() -> anyhow::Result<()> {
|
|||
}
|
||||
|
||||
pub async fn get_tauri_version() -> anyhow::Result<()> {
|
||||
let version = app::get_tauri_version().await;
|
||||
let version = app::get_tauri_version().await?;
|
||||
|
||||
ensure!(version.major == 1);
|
||||
ensure!(version.minor == 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue