-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - fix diagnostic length for asset count #2165
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,7 @@ impl Plugin for DiagnosticsPlugin { | |
app.init_resource::<Diagnostics>(); | ||
} | ||
} | ||
|
||
/// The width which diagnostic names will be printed as | ||
/// Plugin names should not be longer than this value | ||
pub const MAX_DIAGNOSTIC_NAME_WIDTH: usize = 32; | ||
Comment on lines
+22
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the purpose of having this limit in the first place? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it came in #1505 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it was to clean up how it's displayed, and it's an issue only for this diagnostics as all other have a fixed name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the first
&str
returned bysplit_at
(assuming you want the first part of the type name).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want the second, the first is most likely to be part of the path:
asset_count bevy_render::texture::texture::Texture