Skip to content
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

Fix clippy::needless_lifetimes lints #91

Merged
merged 1 commit into from
Feb 15, 2025
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
4 changes: 2 additions & 2 deletions src/drawing_item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub enum DrawingItem<'a> {
ViewPort(&'a ViewPort),
}

impl<'a> DrawingItem<'a> {
impl DrawingItem<'_> {
pub fn handle(&self) -> Handle {
match self {
DrawingItem::AppId(app_id) => app_id.handle,
Expand Down Expand Up @@ -53,7 +53,7 @@ pub enum DrawingItemMut<'a> {
ViewPort(&'a mut ViewPort),
}

impl<'a> DrawingItemMut<'a> {
impl DrawingItemMut<'_> {
pub fn handle(&self) -> Handle {
match self {
DrawingItemMut::AppId(ref app_id) => app_id.handle,
Expand Down
4 changes: 2 additions & 2 deletions src/entity_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub(crate) struct EntityIter<'a> {
pub iter: &'a mut CodePairPutBack,
}

impl<'a> Iterator for EntityIter<'a> {
impl Iterator for EntityIter<'_> {
type Item = Entity;

fn next(&mut self) -> Option<Entity> {
Expand All @@ -20,7 +20,7 @@ impl<'a> Iterator for EntityIter<'a> {
}
}

impl<'a> EntityIter<'a> {
impl EntityIter<'_> {
pub(crate) fn read_entities_into_vec(&mut self, entities: &mut Vec<Entity>) -> DxfResult<()> {
collect_entities(self, entities)
}
Expand Down
2 changes: 1 addition & 1 deletion src/object_iter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub(crate) struct ObjectIter<'a> {
pub iter: &'a mut CodePairPutBack,
}

impl<'a> Iterator for ObjectIter<'a> {
impl Iterator for ObjectIter<'_> {
type Item = Object;

fn next(&mut self) -> Option<Object> {
Expand Down
Loading