Remove debug code and bump version

This commit is contained in:
Dominic Grimm 2023-11-24 16:09:39 +01:00
parent a78cba3fd5
commit 164b0fa734
3 changed files with 4 additions and 12 deletions

2
Cargo.lock generated
View file

@ -4,7 +4,7 @@ version = 3
[[package]]
name = "none-guard"
version = "0.1.0"
version = "0.1.2"
dependencies = [
"quote",
"syn",

View file

@ -1,6 +1,6 @@
[package]
name = "none-guard"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
authors = ["Dominic Grimm <dominic@dergrimm.net>"]
repository = "https://git.dergrimm.net/dergrimm/none-guard"

View file

@ -36,20 +36,12 @@ pub fn none_guard(input: TokenStream) -> TokenStream {
let is_some_checks = field_checks
.clone()
.reduce(|acc, e| {
dbg!(&acc, &e);
quote! { #acc && #e }
})
.reduce(|acc, e| quote! { #acc && #e })
.unwrap();
let is_none_checks = field_checks
.map(|tok| quote! { !(#tok) })
.reduce(|acc, e| {
dbg!(&acc, &e);
quote! { #acc && #e }
})
.reduce(|acc, e| quote! { #acc && #e })
.unwrap();
quote! {