restructure searching so with_one_step is actually one step
[scpubgit/DX.git] / lib / DX / QueryState.pm
index 496b983..f7c030a 100644 (file)
@@ -55,10 +55,7 @@ sub new_search_state_for {
     action_applications => [],
     action_policy => DX::ActionPolicy::Allow->new,
   );
-  return DX::SearchState->new(
-    current_hypothesis => $hyp,
-    alternatives => [],
-  );
+  return DX::SearchState->new_for($hyp);
 }
 
 sub with_additional_proposition {