Skip to content

Commit

Permalink
Release v0.1.1 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
VanceLongwill committed Jan 31, 2024
1 parent f0bf96f commit a4d3535
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion expunge/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "expunge"
version = "0.1.0"
version = "0.1.1"
edition = "2021"
description.workspace = true
keywords.workspace = true
Expand Down
12 changes: 8 additions & 4 deletions expunge/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

use std::{
collections::{HashMap, HashSet},
ops::{Deref, DerefMut}, sync::Arc,
ops::{Deref, DerefMut},
};

pub use expunge_derive::*;
Expand Down Expand Up @@ -242,11 +242,15 @@ where
}
}

impl<T> Expunge for Box<T> where T: Expunge {
impl<T> Expunge for Box<T>
where
T: Expunge,
{
fn expunge(self) -> Self
where
Self: Sized {
Box::new((*self).expunge())
Self: Sized,
{
Box::new((*self).expunge())
}
}

Expand Down
2 changes: 1 addition & 1 deletion expunge_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ fn parse_attributes(
} else if meta.path.is_ident(ALL) {
if !is_container {
return Err(syn::Error::new(
meta.path.span(),
meta.path.span(),
format!("`{ALL}` is not permitted on fields or variants, use #[expunge] instead"),
));
}
Expand Down

0 comments on commit a4d3535

Please sign in to comment.