Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Daksh14 committed Mar 4, 2021
2 parents cf8c1da + 5273d4c commit 209bf9e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions sanitizer-macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
[package]
name = "sanitizer_macros"
<<<<<<< HEAD
version = "0.1.3"
=======
version = "0.1.2"
>>>>>>> origin/main
edition = "2018"
authors = ["weegee <[email protected]>"]
license = "MIT"
Expand Down
6 changes: 6 additions & 0 deletions sanitizer-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,13 @@ pub fn sanitize(input: TokenStream) -> TokenStream {
if val.is_enum() {
init_enum(&mut init, field, x, &mut call);
} else {
<<<<<<< HEAD
init_struct(&mut init, field, x, &mut call);
=======
init.append_all(quote! {
let mut instance = IntSanitizer::from(self.#x);
})
>>>>>>> origin/main
}
}
TypeOrNested::Nested(x, y) => {
Expand Down

0 comments on commit 209bf9e

Please sign in to comment.