File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ impl CommandDef {
8585 pub fn effective_readiness_urls ( & self ) -> Vec < & str > {
8686 let mut urls: Vec < & str > = self . readiness_urls . iter ( ) . map ( |s| s. as_str ( ) ) . collect ( ) ;
8787 if let Some ( ref url) = self . readiness_url {
88- if !urls. iter ( ) . any ( |u| * u == url. as_str ( ) ) {
88+ if !urls. contains ( & url. as_str ( ) ) {
8989 urls. insert ( 0 , url. as_str ( ) ) ;
9090 }
9191 }
Original file line number Diff line number Diff line change @@ -59,11 +59,13 @@ pub struct DiscoveryResult {
5959/// meant to be included by other test files, not run directly.
6060/// Discovery order is deterministic (sorted by path).
6161/// Parse errors are collected per-file rather than aborting discovery.
62- pub fn discover_root_tests ( root : & Path ) -> Result < DiscoveryResult , DiscoveryError > {
62+ pub fn discover_root_tests ( root : & Path ) -> Result < DiscoveryResult , Box < DiscoveryError > > {
6363 let mut test_files = Vec :: new ( ) ;
64- collect_test_files ( root, & mut test_files) . map_err ( |e| DiscoveryError :: ReadDir {
65- path : root. display ( ) . to_string ( ) ,
66- source : e,
64+ collect_test_files ( root, & mut test_files) . map_err ( |e| {
65+ Box :: new ( DiscoveryError :: ReadDir {
66+ path : root. display ( ) . to_string ( ) ,
67+ source : e,
68+ } )
6769 } ) ?;
6870
6971 // Sort for deterministic order
You can’t perform that action at this time.
0 commit comments