diff options
Diffstat (limited to 'examples/url_handler')
| -rw-r--r-- | examples/url_handler/Cargo.toml | 1 | ||||
| -rw-r--r-- | examples/url_handler/src/main.rs | 10 | 
2 files changed, 4 insertions, 7 deletions
diff --git a/examples/url_handler/Cargo.toml b/examples/url_handler/Cargo.toml index 63c7ec27..4dcff92d 100644 --- a/examples/url_handler/Cargo.toml +++ b/examples/url_handler/Cargo.toml @@ -7,4 +7,3 @@ publish = false  [dependencies]  iced = { path = "../.." } -iced_native = { path = "../../native" } diff --git a/examples/url_handler/src/main.rs b/examples/url_handler/src/main.rs index 3257b519..f63fa06a 100644 --- a/examples/url_handler/src/main.rs +++ b/examples/url_handler/src/main.rs @@ -1,12 +1,10 @@ +use iced::event::{Event, MacOS, PlatformSpecific};  use iced::executor; +use iced::subscription;  use iced::widget::{container, text};  use iced::{      Application, Command, Element, Length, Settings, Subscription, Theme,  }; -use iced_native::{ -    event::{MacOS, PlatformSpecific}, -    Event, -};  pub fn main() -> iced::Result {      App::run(Settings::default()) @@ -19,7 +17,7 @@ struct App {  #[derive(Debug, Clone)]  enum Message { -    EventOccurred(iced_native::Event), +    EventOccurred(Event),  }  impl Application for App { @@ -52,7 +50,7 @@ impl Application for App {      }      fn subscription(&self) -> Subscription<Message> { -        iced_native::subscription::events().map(Message::EventOccurred) +        subscription::events().map(Message::EventOccurred)      }      fn view(&self) -> Element<Message> {  | 
