Skip to content

Commit

Permalink
fix: docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 committed Apr 1, 2024
1 parent efe6deb commit e7a77f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/src/clipboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ pub struct DndDestinationRectangles {
}

impl DndDestinationRectangles {
/// Creates a new [`DestinationRectangle`].
/// Creates a new [`DndDestinationRectangles`].
pub fn new() -> Self {

Check warning on line 178 in core/src/clipboard.rs

View workflow job for this annotation

GitHub Actions / all

you should consider adding a `Default` implementation for `DndDestinationRectangles`

Check warning on line 178 in core/src/clipboard.rs

View workflow job for this annotation

GitHub Actions / all

you should consider adding a `Default` implementation for `DndDestinationRectangles`
Self {
rectangles: Vec::new(),
}
}

/// Creates a new [`DestinationRectangle`] with the given capacity.
/// Creates a new [`DndDestinationRectangles`] with the given capacity.
pub fn with_capacity(capacity: usize) -> Self {
Self {
rectangles: Vec::with_capacity(capacity),
Expand All @@ -199,7 +199,7 @@ impl DndDestinationRectangles {
}

/// Returns the list of DnD destination rectangles.
/// This consumes the [`DestinationRectangles`].
/// This consumes the [`DndDestinationRectangles`].
pub fn into_rectangles(mut self) -> Vec<DndDestinationRectangle> {
self.rectangles.reverse();
self.rectangles
Expand Down

0 comments on commit e7a77f5

Please sign in to comment.