File tree Expand file tree Collapse file tree
fyrox-core-derive/tests/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -625,18 +625,14 @@ impl EntityCreator {
625625 scene_path,
626626 )
627627 {
628- match self . mode {
629- EntityCreatorMode :: CreateChild => {
630- let sub_graph = ui_scene. ui . take_reserve_sub_graph ( ui_node_handle) ;
631- let parent = if let Some ( selection) = editor_selection. as_ui ( ) {
632- selection. widgets . first ( ) . cloned ( ) . unwrap_or_default ( )
633- } else {
634- Handle :: NONE
635- } ;
636- sender. do_command ( AddWidgetCommand :: new ( sub_graph, parent, true ) ) ;
637- }
638- // The rest is unsupported.
639- _ => ( ) ,
628+ if let EntityCreatorMode :: CreateChild = self . mode {
629+ let sub_graph = ui_scene. ui . take_reserve_sub_graph ( ui_node_handle) ;
630+ let parent = if let Some ( selection) = editor_selection. as_ui ( ) {
631+ selection. widgets . first ( ) . cloned ( ) . unwrap_or_default ( )
632+ } else {
633+ Handle :: NONE
634+ } ;
635+ sender. do_command ( AddWidgetCommand :: new ( sub_graph, parent, true ) ) ;
640636 }
641637 }
642638 }
Original file line number Diff line number Diff line change @@ -75,11 +75,7 @@ fn doc_comments() {
7575 hidden : 0 ,
7676 } ;
7777 s. fields_ref ( & mut |infos| {
78- assert_eq ! (
79- infos[ 0 ] . doc,
80- " This is a \
81- multiline doc comment."
82- ) ;
78+ assert_eq ! ( infos[ 0 ] . doc, " This is a\n multiline doc comment.\n " ) ;
8379 } ) ;
8480 assert_eq ! ( s. type_info_ref( ) . doc_comment, " Struct doc comment." ) ;
8581}
You can’t perform that action at this time.
0 commit comments