1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 14:20:04 -04:00

clippy fixes for rust 1.53

This commit is contained in:
Emil Ernerfeldt
2021-06-22 23:25:54 +02:00
parent 60fd70921d
commit 269a4538d9
11 changed files with 24 additions and 25 deletions

View File

@@ -72,7 +72,7 @@ impl epi::App for WrapApp {
fn update(&mut self, ctx: &egui::CtxRef, frame: &mut epi::Frame<'_>) {
if let Some(web_info) = frame.info().web_info.as_ref() {
if let Some(anchor) = web_info.web_location_hash.strip_prefix("#") {
if let Some(anchor) = web_info.web_location_hash.strip_prefix('#') {
self.selected_anchor = anchor.to_owned();
}
}