mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Update MSRV from 1.92 to 1.95 (#8348)
No particular reason --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -117,7 +117,6 @@ impl SubpixelBin {
|
||||
let trunc = pos as i32;
|
||||
let fract = pos - trunc as f32;
|
||||
|
||||
#[expect(clippy::collapsible_else_if)]
|
||||
if pos.is_sign_negative() {
|
||||
if fract > -0.125 {
|
||||
(trunc, Self::Zero)
|
||||
|
||||
@@ -471,8 +471,7 @@ fn layout_section(
|
||||
// Process each paragraph segment (split on newlines — the shaper can't handle them).
|
||||
for (seg_idx, segment) in SplitOrWhole::new(section_text, job.break_on_newline).enumerate() {
|
||||
if 0 < seg_idx {
|
||||
out_paragraphs.push(Paragraph::from_section_index(section_index));
|
||||
paragraph = out_paragraphs.last_mut().unwrap();
|
||||
paragraph = out_paragraphs.push_mut(Paragraph::from_section_index(section_index));
|
||||
paragraph.empty_paragraph_height = line_height;
|
||||
ctx.is_first_glyph_in_section = true;
|
||||
}
|
||||
@@ -1864,7 +1863,7 @@ mod tests {
|
||||
|
||||
// Verify that Row::text() reconstructs the input text.
|
||||
let row_text: String = galley.rows.iter().map(|r| r.text()).collect();
|
||||
assert_eq!(row_text, text, "Row::text() mismatch for {text:?}",);
|
||||
assert_eq!(row_text, text, "Row::text() mismatch for {text:?}");
|
||||
|
||||
// Verify cursor round-trip: end cursor index == char count.
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user