mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 21:30:03 -04:00
Add more puffin profile scopes to eframe (#3330)
* Add puffin profile scopes to the startup and running of eframe * puffin_profiler example: start puffin right away * cargo format let-else statements * More profile scopes * Add some `#[inline]` * Standardize puffin profile scope definitions * standardize again * Silence warning when puffin is disabled
This commit is contained in:
@@ -20,7 +20,7 @@ impl ImageCrateLoader {
|
||||
fn is_supported_uri(uri: &str) -> bool {
|
||||
let Some(ext) = Path::new(uri).extension().and_then(|ext| ext.to_str()) else {
|
||||
// `true` because if there's no extension, assume that we support it
|
||||
return true
|
||||
return true;
|
||||
};
|
||||
|
||||
ext != "svg"
|
||||
|
||||
Reference in New Issue
Block a user