Skip to content

Commit

Permalink
Merge pull request #1410 from Barsik-sus/willbe_bug_toolchain_unwrap
Browse files Browse the repository at this point in the history
READY (willbe): bugfix: toolchain without `-` in the name
  • Loading branch information
Wandalen authored Jul 15, 2024
2 parents 5a55299 + 3205d9c commit 1eaa1ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions module/move/willbe/src/entity/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ mod private
let list = report
.out
.lines()
.map( | l | l.split_once( '-' ).unwrap().0 )
.filter_map( | c | match c
// toolchain with a name without `-` may exist, but we are looking at specific ones
.filter_map( | l | l.split_once( '-' ) )
.filter_map( |( c, _ ) | match c
{
"stable" => Some( Channel::Stable ),
"nightly" => Some( Channel::Nightly ),
Expand Down

0 comments on commit 1eaa1ea

Please sign in to comment.