File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -202,28 +202,24 @@ impl Container {
202202
203203 // TODO
204204 pub fn impl_full_from_partial ( & self ) -> TokenStream {
205- let inner = match & self . inner {
206- ContainerInner :: NamedStruct { fields } => {
207- let mut statements = vec ! [ ] ;
208-
209- for field in fields {
210- let res = field. impl_partial_merge ( ) ;
211-
212- if !res. no_value {
213- statements. push ( res. value ) ;
214- }
215- }
216-
217- quote ! {
218- Self {
219- #( #setting_names: #from_partial_values) , *
220- }
221- }
222- }
223- ContainerInner :: UnnamedStruct { fields } => { }
224- ContainerInner :: UnnamedEnum { variants } => { }
225- ContainerInner :: UnitEnum { variants } => todo ! ( ) ,
226- } ;
205+ // let inner = match &self.inner {
206+ // ContainerInner::NamedStruct { fields } => {
207+ // let mut statements = vec![];
208+
209+ // for field in fields {
210+ // let res = field.impl_partial_merge();
211+
212+ // if !res.no_value {
213+ // statements.push(res.value);
214+ // }
215+ // }
216+
217+ // todo!();
218+ // }
219+ // ContainerInner::UnnamedStruct { fields } => {}
220+ // ContainerInner::UnnamedEnum { variants } => {}
221+ // ContainerInner::UnitEnum { variants } => todo!(),
222+ // };
227223
228224 quote ! {
229225 fn from_partial( partial: Self :: Partial ) -> Self { }
Original file line number Diff line number Diff line change 11[toolchain ]
22profile = " default"
3- channel = " 1.91 .0"
3+ channel = " 1.95 .0"
You can’t perform that action at this time.
0 commit comments