Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion path/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl Path {
}

/// Returns an iterator over path's segments.
pub fn segments(&self) -> PathSegmentsIter {
pub fn segments(&self) -> PathSegmentsIter<'_> {
PathSegmentsIter {
path: self,
verb_index: 0,
Expand Down
2 changes: 1 addition & 1 deletion path/src/stroker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ impl PathStroker {
self.finish(last_segment_is_line)
}

fn builders(&mut self) -> SwappableBuilders {
fn builders(&mut self) -> SwappableBuilders<'_> {
SwappableBuilders {
inner: &mut self.inner,
outer: &mut self.outer,
Expand Down
2 changes: 1 addition & 1 deletion src/edge_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ fn combine_vertical(edge: &LineEdge, last: &mut LineEdge) -> Combine {
Combine::No
}

pub fn edge_iter(path: &Path) -> PathEdgeIter {
pub fn edge_iter(path: &Path) -> PathEdgeIter<'_> {
PathEdgeIter {
path,
verb_index: 0,
Expand Down
10 changes: 5 additions & 5 deletions src/pixmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,15 +180,15 @@ impl Pixmap {
}

/// Returns a container that references Pixmap's data.
pub fn as_ref(&self) -> PixmapRef {
pub fn as_ref(&self) -> PixmapRef<'_> {
PixmapRef {
data: &self.data,
size: self.size,
}
}

/// Returns a container that references Pixmap's data.
pub fn as_mut(&mut self) -> PixmapMut {
pub fn as_mut(&mut self) -> PixmapMut<'_> {
PixmapMut {
data: &mut self.data,
size: self.size,
Expand Down Expand Up @@ -482,7 +482,7 @@ impl<'a> PixmapMut<'a> {
}

/// Returns a container that references Pixmap's data.
pub fn as_ref(&self) -> PixmapRef {
pub fn as_ref(&self) -> PixmapRef<'_> {
PixmapRef {
data: self.data,
size: self.size,
Expand Down Expand Up @@ -527,7 +527,7 @@ impl<'a> PixmapMut<'a> {
}

/// Creates `SubPixmapMut` that contains the whole `PixmapMut`.
pub(crate) fn as_subpixmap(&mut self) -> SubPixmapMut {
pub(crate) fn as_subpixmap(&mut self) -> SubPixmapMut<'_> {
SubPixmapMut {
size: self.size(),
real_width: self.width() as usize,
Expand All @@ -538,7 +538,7 @@ impl<'a> PixmapMut<'a> {
/// Returns a mutable reference to the pixmap region that intersects the `rect`.
///
/// Returns `None` when `Pixmap`'s rect doesn't contain `rect`.
pub(crate) fn subpixmap(&mut self, rect: IntRect) -> Option<SubPixmapMut> {
pub(crate) fn subpixmap(&mut self, rect: IntRect) -> Option<SubPixmapMut<'_>> {
let rect = self.size.to_int_rect(0, 0).intersect(&rect)?;
let row_bytes = self.width() as usize * BYTES_PER_PIXEL;
let offset = rect.top() as usize * row_bytes + rect.left() as usize * BYTES_PER_PIXEL;
Expand Down
1 change: 1 addition & 0 deletions src/wide/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub use f32x4_t::f32x4;
pub use f32x8_t::f32x8;
pub use i32x4_t::i32x4;
pub use i32x8_t::i32x8;
#[allow(unused_imports)]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this one unused if it's a public export?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wide module is private to the crate.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This warning was probably here before 1.89.0 though

pub use tiny_skia_path::f32x2;
pub use u16x16_t::u16x16;
pub use u32x4_t::u32x4;
Expand Down