Skip to content

Commit

Permalink
fix: toolchain without - in the name
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsik-sus committed Jul 15, 2024
1 parent 5a55299 commit 3205d9c
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 3205d9c

Please sign in to comment.