Skip to content

Rust complains with required type annotations when passing None as parent window to dialog::message #2471

Answered by Blakeinstein
Blakeinstein asked this question in Q&A
Discussion options

You must be logged in to vote

The solution is to use tauri's None as Option::<&tauri::Window<tauri::Wry>>::None

message(Option::<&tauri::Window<tauri::Wry>>::None, "Error parsing default config", err.to_string())

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Blakeinstein
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant