Skip to content

Commit

Permalink
fix: make outout fields public (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
bokuweb authored Jun 30, 2020
1 parent 681f9fd commit 460f76e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion raiden-derive/src/ops/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub(crate) fn expand_get_item(
let ident = &f.ident.clone().unwrap();
let ty = &f.ty;
quote! {
#ident: #ty,
pub #ident: #ty,
}
});

Expand Down
2 changes: 1 addition & 1 deletion raiden-derive/src/ops/put.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ pub(crate) fn expand_put_item(
let ident = &f.ident.clone().unwrap();
let ty = &f.ty;
quote! {
#ident: #ty,
pub #ident: #ty,
}
});

Expand Down
2 changes: 1 addition & 1 deletion raiden-derive/src/ops/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub(crate) fn expand_query(
let ident = &f.ident.clone().unwrap();
let ty = &f.ty;
quote! {
#ident: #ty,
pub #ident: #ty,
}
});
quote! {
Expand Down
2 changes: 1 addition & 1 deletion raiden/examples/put.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use raiden::*;

#[derive(Debug, Clone, PartialEq)]
struct CustomId(String);
pub struct CustomId(String);

impl Into<CustomId> for String {
fn into(self) -> CustomId {
Expand Down

0 comments on commit 460f76e

Please sign in to comment.