Skip to content

Commit

Permalink
no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
dfrg committed Aug 16, 2024
1 parent 1d2402e commit 0938434
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parley/src/layout/cursor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

//! Hit testing.

use peniko::kurbo::Rect;

use super::*;
use alloc::vec::Vec;
use peniko::kurbo::Rect;

/// Represents a position within a layout.
#[derive(Copy, Clone, PartialEq, Default, Debug)]
Expand Down Expand Up @@ -421,7 +421,7 @@ impl Selection {
}

pub fn visual_regions<B: Brush>(&self, layout: &Layout<B>) -> Vec<Rect> {
let mut rects = vec![];
let mut rects = Vec::new();
self.visual_regions_with(layout, |rect| rects.push(rect));
rects
}
Expand Down

0 comments on commit 0938434

Please sign in to comment.