Compare commits
	
		
			No commits in common. "ff830486af65c1cb60754cbd861c007a3472ec2f" and "53aa47f91ed4de659fbd75a33143a946f33e95b1" have entirely different histories.
		
	
	
		
			ff830486af
			...
			53aa47f91e
		
	
		
| @ -42,7 +42,7 @@ pub struct Args { | ||||
|     list: bool, | ||||
| } | ||||
| 
 | ||||
| fn maestro_scores_filter<T: Topology>( | ||||
| fn maestro_scores_filter<T: Topology + std::fmt::Debug + Send + Sync + 'static>( | ||||
|     maestro: &harmony::maestro::Maestro<T>, | ||||
|     all: bool, | ||||
|     filter: Option<String>, | ||||
| @ -71,7 +71,9 @@ fn maestro_scores_filter<T: Topology>( | ||||
| } | ||||
| 
 | ||||
| // TODO: consider adding doctest for this function
 | ||||
| fn list_scores_with_index<T: Topology>(scores_vec: &Vec<Box<dyn Score<T>>>) -> String { | ||||
| fn list_scores_with_index<T: Topology + std::fmt::Debug + Send + Sync + 'static>( | ||||
|     scores_vec: &Vec<Box<dyn Score<T>>>, | ||||
| ) -> String { | ||||
|     let mut display_str = String::new(); | ||||
|     for (i, s) in scores_vec.iter().enumerate() { | ||||
|         let name = s.name(); | ||||
| @ -80,7 +82,7 @@ fn list_scores_with_index<T: Topology>(scores_vec: &Vec<Box<dyn Score<T>>>) -> S | ||||
|     return display_str; | ||||
| } | ||||
| 
 | ||||
| pub async fn init<T: Topology + Send + Sync + 'static>( | ||||
| pub async fn init<T: Topology + std::fmt::Debug + Send + Sync + 'static>( | ||||
|     maestro: harmony::maestro::Maestro<T>, | ||||
|     args_struct: Option<Args>, | ||||
| ) -> Result<(), Box<dyn std::error::Error>> { | ||||
| @ -291,6 +293,8 @@ mod test { | ||||
| 
 | ||||
|         let res = crate::maestro_scores_filter(&maestro, false, None, 0); | ||||
| 
 | ||||
|         println!("{:#?}", res); | ||||
| 
 | ||||
|         assert!(res.len() == 1); | ||||
| 
 | ||||
|         assert!( | ||||
| @ -307,6 +311,8 @@ mod test { | ||||
| 
 | ||||
|         let res = crate::maestro_scores_filter(&maestro, false, None, 11); | ||||
| 
 | ||||
|         println!("{:#?}", res); | ||||
| 
 | ||||
|         assert!(res.len() == 0); | ||||
|     } | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user