@@ -133,7 +133,7 @@ impl<T> Backend<T> {
133133
134134 // Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn.
135135 fn compress_loop ( & mut self ) {
136- let ( send_file, send_file_rx) = bounded :: < Option < ( PathBuf , u64 ) > > ( 1 ) ;
136+ let ( send_file, send_file_rx) = bounded :: < ( PathBuf , u64 ) > ( 1 ) ;
137137 let ( recv_result_tx, recv_result) = bounded :: < ( PathBuf , io:: Result < bool > ) > ( 1 ) ;
138138
139139 let compression = Some ( config ( ) . read ( ) . unwrap ( ) . current ( ) . compression ) ;
@@ -203,7 +203,7 @@ impl<T> Backend<T> {
203203
204204 if let Some ( mut fi) = folder. pop ( FileKind :: Compressible ) {
205205 send_file
206- . send ( Some ( ( folder. path . join ( & fi. path ) , fi. logical_size ) ) )
206+ . send ( ( folder. path . join ( & fi. path ) , fi. logical_size ) )
207207 . expect ( "send_file" ) ;
208208
209209 if !displayed && last_update. elapsed ( ) > Duration :: from_millis ( 50 ) {
@@ -291,7 +291,7 @@ impl<T> Backend<T> {
291291 }
292292 }
293293
294- send_file . send ( None ) . expect ( " send_file" ) ;
294+ drop ( send_file) ;
295295 task. wait ( ) ;
296296
297297 let _ = incompressible. save ( ) ;
@@ -316,7 +316,7 @@ impl<T> Backend<T> {
316316
317317 // Oh no, not again.
318318 fn uncompress_loop ( & mut self ) {
319- let ( send_file, send_file_rx) = bounded :: < Option < ( PathBuf , u64 ) > > ( 1 ) ;
319+ let ( send_file, send_file_rx) = bounded :: < ( PathBuf , u64 ) > ( 1 ) ;
320320 let ( recv_result_tx, recv_result) = bounded :: < ( PathBuf , io:: Result < bool > ) > ( 1 ) ;
321321
322322 let compactor = BackgroundCompactor :: new ( None , send_file_rx, recv_result_tx) ;
@@ -380,7 +380,7 @@ impl<T> Backend<T> {
380380
381381 if let Some ( mut fi) = folder. pop ( FileKind :: Compressed ) {
382382 send_file
383- . send ( Some ( ( folder. path . join ( & fi. path ) , fi. logical_size ) ) )
383+ . send ( ( folder. path . join ( & fi. path ) , fi. logical_size ) )
384384 . expect ( "send_file" ) ;
385385
386386 let mut waiting = false ;
@@ -445,7 +445,7 @@ impl<T> Backend<T> {
445445 }
446446 }
447447
448- send_file . send ( None ) . expect ( " send_file" ) ;
448+ drop ( send_file) ;
449449 task. wait ( ) ;
450450
451451 let new_size = folder. physical_size ;
0 commit comments