From f86f62bb3ddd37db3462184b3a3a514b5e4a7d2b Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Wed, 29 Jan 2025 08:44:13 +0100 Subject: [PATCH] Improve deprecation text for `open_url/copied_text` --- crates/egui/src/data/output.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/egui/src/data/output.rs b/crates/egui/src/data/output.rs index 64a30d36..e1f9086a 100644 --- a/crates/egui/src/data/output.rs +++ b/crates/egui/src/data/output.rs @@ -112,7 +112,7 @@ pub struct PlatformOutput { pub cursor_icon: CursorIcon, /// If set, open this url. - #[deprecated = "Use `Context::open_url` instead"] + #[deprecated = "Use `Context::open_url` or `PlatformOutput::commands` instead"] pub open_url: Option, /// If set, put this text in the system clipboard. Ignore if empty. @@ -126,7 +126,7 @@ pub struct PlatformOutput { /// } /// # }); /// ``` - #[deprecated = "Use `Context::copy_text` instead"] + #[deprecated = "Use `Context::copy_text` or `PlatformOutput::commands` instead"] pub copied_text: String, /// Events that may be useful to e.g. a screen reader.