1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

clippy fixes from 1.69.0

This commit is contained in:
Emil Ernerfeldt
2023-04-21 11:33:18 +02:00
parent 4d360f67a4
commit 4d357b0f02
17 changed files with 53 additions and 61 deletions

View File

@@ -11,7 +11,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Confirm exit",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -157,9 +157,11 @@ impl RotatingTriangle {
.collect();
gl.link_program(program);
if !gl.get_program_link_status(program) {
panic!("{}", gl.get_program_info_log(program));
}
assert!(
gl.get_program_link_status(program),
"{}",
gl.get_program_info_log(program)
);
for shader in shaders {
gl.detach_shader(program, shader);

View File

@@ -18,7 +18,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Custom window frame", // unused title
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -10,7 +10,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Download and show an image with eframe/egui",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -12,7 +12,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Native file dialogs and drag-and-drop files",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -11,7 +11,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"My egui App",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -9,7 +9,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Keyboard events",
options,
Box::new(|_cc| Box::new(Content::default())),
Box::new(|_cc| Box::<Content>::default()),
)
}

View File

@@ -9,7 +9,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"My egui App",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -12,7 +12,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Show an image with eframe/egui",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -11,7 +11,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"Take screenshots and display with eframe/egui",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}

View File

@@ -15,7 +15,7 @@ fn main() -> Result<(), eframe::Error> {
eframe::run_native(
"svg example",
options,
Box::new(|_cc| Box::new(MyApp::default())),
Box::new(|_cc| Box::<MyApp>::default()),
)
}