Skip to content

Commit

Permalink
chore: clean-up and fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsik-sus committed Nov 8, 2023
1 parent 87e4f2d commit e806e4b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 27 deletions.
3 changes: 2 additions & 1 deletion module/move/willbe/src/command/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ mod private
let root_crate = properties.get_owned( "root_module" ).unwrap_or_default();
let list_type = properties.get_owned( "type" ).unwrap_or( "tree" );

if list_type != "tree" && list_type != "topsort" {
if list_type != "tree" && list_type != "topsort"
{
return Err( err!( format!( "Unknown option 'type:{}'", list_type ) ) );
}

Expand Down
26 changes: 13 additions & 13 deletions module/move/willbe/src/endpoint/publish.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ mod private

for path in paths
{
package::publish( &current_path, &path, dry )
.map_err
(
| ( current_report, e ) |
{
report.packages.push(( path, current_report.clone() ));
( report.clone(), e.context( "Publish list of packages" ).into() )
}
)?;
package::publish( &current_path, &path, dry )
.map_err
(
| ( current_report, e ) |
{
report.packages.push(( path, current_report.clone() ));
( report.clone(), e.context( "Publish list of packages" ).into() )
}
)?;
}

Ok( report )
Expand Down Expand Up @@ -102,10 +102,10 @@ mod private
.map_err
(
| ( current_report, e ) |
{
report.packages.push(( path, current_report.clone() ));
( report.clone(), e.context( "Publish list of packages" ).into() )
}
{
report.packages.push(( path, current_report.clone() ));
( report.clone(), e.context( "Publish list of packages" ).into() )
}
)?;
}

Expand Down
13 changes: 0 additions & 13 deletions module/move/willbe/src/tools/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pub( crate ) mod private
use std::process::
{
Command,
// Output,
Stdio,
};

Expand Down Expand Up @@ -69,16 +68,6 @@ pub( crate ) mod private

Ok( report )
}

// ///
// /// Log output.
// ///
//
// pub fn log_output( output : &Output )
// {
// println!( "{}", std::str::from_utf8( &output.stdout ).expect( "Found invalid UTF-8" ) );
// eprintln!( "{}", std::str::from_utf8( &output.stderr ).expect( "Found invalid UTF-8" ) );
// }
}

//
Expand All @@ -87,7 +76,5 @@ crate::mod_interface!
{
protected( crate ) use CmdReport;
protected( crate ) use start_sync;

// protected( crate ) use log_output;
}

0 comments on commit e806e4b

Please sign in to comment.