File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ The state can be accessed on a command using `tauri::State`:
146146struct MyState (String );
147147
148148#[tauri:: command]
149- fn my_custom_command (state : tauri :: State <' _ , MyState >) {
149+ fn my_custom_command (state : tauri :: State <MyState >) {
150150 assert_eq! (state . 0 == " some state value" , true );
151151}
152152
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ struct MainWindow(Arc<Mutex<Window>>);
4545
4646#[tauri:: command]
4747fn close_splashscreen (
48- splashscreen : State <' _ , SplashscreenWindow >,
49- main : State <' _ , MainWindow >,
48+ splashscreen : State <SplashscreenWindow >,
49+ main : State <MainWindow >,
5050) {
5151 // Close splashscreen
5252 splashscreen . 0. lock (). unwrap (). close (). unwrap ();
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ The state can be accessed on a command using `tauri::State`:
139139struct MyState (String );
140140
141141#[tauri:: command]
142- fn my_custom_command (state : tauri :: State <' _ , MyState >) {
142+ fn my_custom_command (state : tauri :: State <MyState >) {
143143 assert_eq! (state . 0 == " some state value" , true );
144144}
145145
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ struct MainWindow(Arc<Mutex<Window>>);
4545
4646#[tauri:: command]
4747fn close_splashscreen (
48- splashscreen : State <' _ , SplashscreenWindow >,
49- main : State <' _ , MainWindow >,
48+ splashscreen : State <SplashscreenWindow >,
49+ main : State <MainWindow >,
5050) {
5151 // Close splashscreen
5252 splashscreen . 0. lock (). unwrap (). close (). unwrap ();
You can’t perform that action at this time.
0 commit comments