@@ -296,9 +296,9 @@ impl Context {
296296 }
297297
298298 pub fn new_with_freshness ( db : RWArc < Database > ,
299- lg : RWArc < Logger > ,
300- cfg : Arc < json:: Object > ,
301- freshness : Arc < FreshnessMap > ) -> Context {
299+ lg : RWArc < Logger > ,
300+ cfg : Arc < json:: Object > ,
301+ freshness : Arc < FreshnessMap > ) -> Context {
302302 Context {
303303 db : db,
304304 logger : lg,
@@ -319,16 +319,18 @@ impl Context {
319319}
320320
321321impl Exec {
322- pub fn discover_input ( & mut self , dependency_kind : & str ,
323- // Discovered input
324- dependency_name : & str , dependency_val : & str ) {
322+ pub fn discover_input ( & mut self ,
323+ dependency_kind : & str ,
324+ dependency_name : & str ,
325+ dependency_val : & str ) {
325326 debug ! ( "Discovering input %s %s %s" , dependency_kind, dependency_name, dependency_val) ;
326327 self . discovered_inputs . insert_work_key ( WorkKey :: new ( dependency_kind, dependency_name) ,
327328 dependency_val. to_owned ( ) ) ;
328329 }
329- pub fn discover_output ( & mut self , dependency_kind : & str ,
330- // Discovered output
331- dependency_name : & str , dependency_val : & str ) {
330+ pub fn discover_output ( & mut self ,
331+ dependency_kind : & str ,
332+ dependency_name : & str ,
333+ dependency_val : & str ) {
332334 debug ! ( "Discovering output %s %s %s" , dependency_kind, dependency_name, dependency_val) ;
333335 self . discovered_outputs . insert_work_key ( WorkKey :: new ( dependency_kind, dependency_name) ,
334336 dependency_val. to_owned ( ) ) ;
@@ -340,11 +342,10 @@ impl Exec {
340342 for ( k, v) in self . discovered_inputs . iter ( ) {
341343 for ( k1, _) in v. iter ( ) {
342344 rs. push ( ( k1. clone ( ) , k. clone ( ) ) ) ;
343- }
345+ }
344346 }
345347 rs
346348 }
347-
348349}
349350
350351impl < ' self > Prep < ' self > {
@@ -368,7 +369,7 @@ impl<'self> Prep<'self> {
368369}
369370
370371impl < ' self > Prep < ' self > {
371- pub fn declare_input ( & mut self , kind : & str , name : & str , val : & str ) {
372+ pub fn declare_input ( & mut self , kind : & str , name : & str , val : & str ) {
372373 debug ! ( "Declaring input %s %s %s" , kind, name, val) ;
373374 self . declared_inputs . insert_work_key ( WorkKey :: new ( kind, name) ,
374375 val. to_owned ( ) ) ;
0 commit comments