Skip to content

Commit

Permalink
Adds README for rustify_derive
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Aug 21, 2021
1 parent 056f98e commit c6b3034
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions rustify_derive/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Provides a derive macro for easily implementing an `Endpoint` from the
[rustify][1] crate. See the documentation for `rustify` for details on how
to use this macro.

[1]: https://docs.rs/rustify/
2 changes: 1 addition & 1 deletion rustify_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ fn endpoint_derive(s: synstructure::Structure) -> proc_macro2::TokenStream {
// Generate query function
let query = gen_query(&field_attrs);

// Gather data
// Generate data
let data = match gen_data(&field_attrs) {
Ok(v) => v,
Err(e) => return e.into_tokens(),
Expand Down

0 comments on commit c6b3034

Please sign in to comment.