Skip to content

Commit

Permalink
Fix @rust.Type on typedef
Browse files Browse the repository at this point in the history
Reviewed By: iahs

Differential Revision: D68909054

fbshipit-source-id: c94002ff1f35a4d353ff5cf039a365c3316bc274
  • Loading branch information
David Tolnay authored and facebook-github-bot committed Jan 31, 2025
1 parent 0fb12d5 commit 0ed80c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ pub type {{typedef:rust_name}} = {{!
pub use {{type:package}}::{{type:rust_name}} as {{typedef:rust_name}};
{{/type:enum}}{{!
}}{{^type:enum}}
pub type {{typedef:rust_name}} = {{> lib/type}};
pub type {{typedef:rust_name}} = {{!
}}{{#typedef:rust_type}}::{{typedef:rust_type}}{{> lib/type_generics}}{{/typedef:rust_type}}{{!
}}{{^typedef:rust_type}}{{> lib/type}}{{/typedef:rust_type}}{{!
}};
{{/type:enum}}{{!
}}{{/typedef:type}}{{!
}}{{/typedef:has_adapter?}}{{!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ pub mod services;
#[allow(unused_imports)]
pub(crate) use crate as types;

pub type double_t = ::std::primitive::f64;
pub type double_t = ::fbthrift::builtin_types::OrderedFloat<f64>;

pub type map_t = ::std::collections::BTreeMap<::std::string::String, ::std::primitive::i64>;
pub type map_t = ::sorted_vector_map::SortedVectorMap<::std::string::String, ::std::primitive::i64>;

#[derive(Default, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub struct binary_t(pub ::smallvec::SmallVec<[u8; 16]>);
Expand Down

0 comments on commit 0ed80c7

Please sign in to comment.