@@ -296,9 +296,9 @@ impl Context {
296
296
}
297
297
298
298
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 {
302
302
Context {
303
303
db : db,
304
304
logger : lg,
@@ -319,16 +319,18 @@ impl Context {
319
319
}
320
320
321
321
impl 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 ) {
325
326
debug ! ( "Discovering input %s %s %s" , dependency_kind, dependency_name, dependency_val) ;
326
327
self . discovered_inputs . insert_work_key ( WorkKey :: new ( dependency_kind, dependency_name) ,
327
328
dependency_val. to_owned ( ) ) ;
328
329
}
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 ) {
332
334
debug ! ( "Discovering output %s %s %s" , dependency_kind, dependency_name, dependency_val) ;
333
335
self . discovered_outputs . insert_work_key ( WorkKey :: new ( dependency_kind, dependency_name) ,
334
336
dependency_val. to_owned ( ) ) ;
@@ -340,11 +342,10 @@ impl Exec {
340
342
for ( k, v) in self . discovered_inputs . iter ( ) {
341
343
for ( k1, _) in v. iter ( ) {
342
344
rs. push ( ( k1. clone ( ) , k. clone ( ) ) ) ;
343
- }
345
+ }
344
346
}
345
347
rs
346
348
}
347
-
348
349
}
349
350
350
351
impl < ' self > Prep < ' self > {
@@ -368,7 +369,7 @@ impl<'self> Prep<'self> {
368
369
}
369
370
370
371
impl < ' 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 ) {
372
373
debug ! ( "Declaring input %s %s %s" , kind, name, val) ;
373
374
self . declared_inputs . insert_work_key ( WorkKey :: new ( kind, name) ,
374
375
val. to_owned ( ) ) ;
0 commit comments