File tree Expand file tree Collapse file tree 3 files changed +49
-30
lines changed
third-party/thrift/src/thrift/compiler/generate/templates/rust/lib Expand file tree Collapse file tree 3 files changed +49
-30
lines changed Original file line number Diff line number Diff line change 2727} }{ {/type:struct} }{ {!
2828} }{ {#type:enum} }{ {enum:package} }::{ {enum:rust_name} }{ {/type:enum} }{ {!
2929} }{ {#type:list?} }
30- }}::std::vec::Vec< { {#type:list_elem_type } } { { > lib/type } } { {/type:list_elem_type } }> { {!
30+ }}::std::vec::Vec{ { > lib/type_generics } } { {!
3131} }{ {/type:list?} }{ {!
3232} }{ {#type:set?} }{ {!
33- } }::{ {field:type_rust} }{ {!
34- } }<{ {!
35- } }{ {#type:set_elem_type} }{ {!
36- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
37- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
38- } }{ {/type:set_elem_type} }{ {!
39- } }>{ {!
33+ } }::{ {field:type_rust} }{ {> lib/type_generics} }{ {!
4034} }{ {/type:set?} }{ {!
4135} }{ {#type:map?} }{ {!
42- } }::{ {field:type_rust} }{ {!
43- } }<{ {!
44- } }{ {#type:key_type} }{ {!
45- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
46- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
47- } }{ {/type:key_type} }, { {!
48- } }{ {#type:value_type} }{ {> lib/type} }{ {/type:value_type} }{ {!
49- } }>{ {!
36+ } }::{ {field:type_rust} }{ {> lib/type_generics} }{ {!
5037} }{ {/type:map?} }{ {!
5138} }
Original file line number Diff line number Diff line change 4848 } }{ {enum:package} }::{ {enum:rust_name} }{ {!
4949} }{ {/type:enum} }{ {!
5050} }{ {#type:list?} }{ {!
51- } }::std::vec::Vec< { {#type:list_elem_type } } { { > lib/type } } { {/type:list_elem_type } }> { {!
51+ } }::std::vec::Vec{ { > lib/type_generics } } { {!
5252} }{ {/type:list?} }{ {!
5353} }{ {#type:set?} }{ {!
5454 } }{ {#type:rust} }::{ {type:rust} }{ {/type:rust} }{ {!
5555 } }{ {^type:rust} }::std::collections::BTreeSet{ {/type:rust} }{ {!
56- } }<{ {!
57- } }{ {#type:set_elem_type} }{ {!
58- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
59- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
60- } }{ {/type:set_elem_type} }{ {!
61- } }>{ {!
56+ } }{ {> lib/type_generics} }{ {!
6257} }{ {/type:set?} }{ {!
6358} }{ {#type:map?} }{ {!
6459 } }{ {#type:rust} }::{ {type:rust} }{ {/type:rust} }{ {!
6560 } }{ {^type:rust} }::std::collections::BTreeMap{ {/type:rust} }{ {!
66- } }<{ {!
67- } }{ {#type:key_type} }{ {!
68- } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
69- } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
70- } }{ {/type:key_type} }, { {!
71- } }{ {#type:value_type} }{ {> lib/type} }{ {/type:value_type} }{ {!
72- } }>{ {!
61+ } }{ {> lib/type_generics} }{ {!
7362} }{ {/type:map?} }{ {!
7463} }
Original file line number Diff line number Diff line change 1+ { {!
2+
3+ Copyright (c) Meta Platforms, Inc. and affiliates.
4+
5+ Licensed under the Apache License, Version 2.0 (the " License" );
6+ you may not use this file except in compliance with the License.
7+ You may obtain a copy of the License at
8+
9+ http://www.apache.org/licenses/LICENSE-2.0
10+
11+ Unless required by applicable law or agreed to in writing, software
12+ distributed under the License is distributed on an " AS IS" BASIS,
13+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+ See the License for the specific language governing permissions and
15+ limitations under the License.
16+
17+ } }{ {#type:list?} }{ {!
18+ } }<{ {!
19+ } }{ {#type:list_elem_type} }{ {!
20+ } }{ {> lib/type} }{ {!
21+ } }{ {/type:list_elem_type} }{ {!
22+ } }>{ {!
23+ } }{ {/type:list?} }{ {!
24+ } }{ {#type:set?} }{ {!
25+ } }<{ {!
26+ } }{ {#type:set_elem_type} }{ {!
27+ } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
28+ } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
29+ } }{ {/type:set_elem_type} }{ {!
30+ } }>{ {!
31+ } }{ {/type:set?} }{ {!
32+ } }{ {#type:map?} }{ {!
33+ } }<{ {!
34+ } }{ {#type:key_type} }{ {!
35+ } }{ {#type:floating_point?} }::fbthrift::export::OrderedFloat<{ {> lib/type} }>{ {/type:floating_point?} }{ {!
36+ } }{ {^type:floating_point?} }{ {> lib/type} }{ {/type:floating_point?} }{ {!
37+ } }{ {/type:key_type} }, { {!
38+ } }{ {#type:value_type} }{ {!
39+ } }{ {> lib/type} }{ {!
40+ } }{ {/type:value_type} }{ {!
41+ } }>{ {!
42+ } }{ {/type:map?} }{ {!
43+ } }
You can’t perform that action at this time.
0 commit comments