Skip to content

Commit 5b740f9

Browse files
authored
Remove egui::special_emojis::TWITTER (#5622)
Twitter is gone, as is its icon. Also, fuck Elon Musk Find me on https://bsky.app/profile/ernerfeldt.bsky.social
1 parent 30e66e4 commit 5b740f9

File tree

6 files changed

+12
-16
lines changed

6 files changed

+12
-16
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ rust_2018_idioms = { level = "warn", priority = -1 }
114114
rust_2021_prelude_collisions = "warn"
115115
semicolon_in_expressions_from_macros = "warn"
116116
trivial_numeric_casts = "warn"
117+
unexpected_cfgs = "warn"
117118
unsafe_op_in_unsafe_fn = "warn" # `unsafe_op_in_unsafe_fn` may become the default in future Rust versions: https://github.com/rust-lang/rust/issues/71668
118119
unused_extern_crates = "warn"
119120
unused_import_braces = "warn"
@@ -203,7 +204,6 @@ match_same_arms = "warn"
203204
match_wild_err_arm = "warn"
204205
match_wildcard_for_single_variants = "warn"
205206
mem_forget = "warn"
206-
mismatched_target_os = "warn"
207207
mismatching_type_param_order = "warn"
208208
missing_enforced_import_renames = "warn"
209209
missing_errors_doc = "warn"

RELEASES.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ We don't update the MSRV in a patch release, unless we really, really need to.
5252
## Preparation
5353
* [ ] run `scripts/generate_example_screenshots.sh` if needed
5454
* [ ] write a short release note that fits in a tweet
55-
* [ ] record gif for `CHANGELOG.md` release note (and later twitter post)
55+
* [ ] record gif for `CHANGELOG.md` release note (and later bluesky post)
5656
* [ ] update changelogs using `scripts/generate_changelog.py --version 0.x.0 --write`
5757
* [ ] bump version numbers in workspace `Cargo.toml`
5858

@@ -87,7 +87,7 @@ I usually do this all on the `master` branch, but doing it in a release branch i
8787
```
8888

8989
## Announcements
90-
* [ ] [twitter](https://x.com/ernerfeldt/status/1772665412225823105)
90+
* [ ] [Bluesky](https://bsky.app/profile/ernerfeldt.bsky.social)
9191
* [ ] egui discord
9292
* [ ] [r/rust](https://www.reddit.com/r/rust/comments/1bocr5s/announcing_egui_027_with_improved_menus_and/)
9393
* [ ] [r/programming](https://www.reddit.com/r/programming/comments/1bocsf6/announcing_egui_027_an_easytouse_crossplatform/)

crates/egui/src/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -625,9 +625,6 @@ pub mod special_emojis {
625625
/// The Github logo.
626626
pub const GITHUB: char = '';
627627

628-
/// The Twitter bird.
629-
pub const TWITTER: char = '';
630-
631628
/// The word `git`.
632629
pub const GIT: char = '';
633630

crates/egui_demo_lib/src/demo/about.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ fn about_immediate_mode(ui: &mut egui::Ui) {
9898
}
9999

100100
fn links(ui: &mut egui::Ui) {
101-
use egui::special_emojis::{GITHUB, TWITTER};
101+
use egui::special_emojis::GITHUB;
102102
ui.hyperlink_to(
103103
format!("{GITHUB} github.com/emilk/egui"),
104104
"https://github.com/emilk/egui",
105105
);
106106
ui.hyperlink_to(
107-
format!("{TWITTER} @ernerfeldt"),
108-
"https://twitter.com/ernerfeldt",
107+
"@ernerfeldt.bsky.social",
108+
"https://bsky.app/profile/ernerfeldt.bsky.social",
109109
);
110110
ui.hyperlink_to("📓 egui documentation", "https://docs.rs/egui/");
111111
}

crates/egui_demo_lib/src/demo/demo_app_windows.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,10 @@ impl DemoWindows {
237237
});
238238

239239
ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| {
240-
use egui::special_emojis::{GITHUB, TWITTER};
240+
use egui::special_emojis::GITHUB;
241241
ui.hyperlink_to(
242-
egui::RichText::new(TWITTER).size(font_size),
243-
"https://twitter.com/ernerfeldt",
242+
egui::RichText::new("🦋").size(font_size),
243+
"https://bsky.app/profile/ernerfeldt.bsky.social",
244244
);
245245
ui.hyperlink_to(
246246
egui::RichText::new(GITHUB).size(font_size),
@@ -264,14 +264,14 @@ impl DemoWindows {
264264

265265
ui.separator();
266266

267-
use egui::special_emojis::{GITHUB, TWITTER};
267+
use egui::special_emojis::GITHUB;
268268
ui.hyperlink_to(
269269
format!("{GITHUB} egui on GitHub"),
270270
"https://github.com/emilk/egui",
271271
);
272272
ui.hyperlink_to(
273-
format!("{TWITTER} @ernerfeldt"),
274-
"https://twitter.com/ernerfeldt",
273+
"@ernerfeldt.bsky.social",
274+
"https://bsky.app/profile/ernerfeldt.bsky.social",
275275
);
276276

277277
ui.separator();

crates/egui_demo_lib/src/demo/font_book.rs

-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ fn special_char_name(chr: char) -> Option<&'static str> {
200200
'\u{E600}' => Some("web-dribbble"),
201201
'\u{E601}' => Some("web-stackoverflow"),
202202
'\u{E602}' => Some("web-vimeo"),
203-
'\u{E603}' => Some("web-twitter"),
204203
'\u{E604}' => Some("web-facebook"),
205204
'\u{E605}' => Some("web-googleplus"),
206205
'\u{E606}' => Some("web-pinterest"),

0 commit comments

Comments
 (0)