Skip to content

Commit

Permalink
Merge pull request #122 from sohosai/bugfix/#121-break-area
Browse files Browse the repository at this point in the history
fix panic message
  • Loading branch information
puripuri2100 authored Oct 24, 2023
2 parents 322b36a + c478fb4 commit db43e89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl From<std::string::String> for QrColor {
"yellow" => QrColor::Yellow,
"purple" => QrColor::Purple,
"pink" => QrColor::Pink,
_ => panic!(),
_ => panic!("Undefined qr_color: {item}"),
}
}
}
Expand Down Expand Up @@ -136,7 +136,7 @@ impl From<std::string::String> for Stroge {
"room101" => Stroge::Room101,
"room102" => Stroge::Room102,
"room206" => Stroge::Room206,
_ => panic!(),
_ => panic!("Undefined stroge: {item}"),
}
}
}
Expand Down Expand Up @@ -232,7 +232,7 @@ impl From<std::string::String> for Area {
"hirasuna" => Area::Hirasuna,
"okioshi" => Area::Oikoshi,
"move" => Area::Move,
_ => panic!(),
_ => panic!("Undefined area: {item}"),
}
}
}
Expand Down

0 comments on commit db43e89

Please sign in to comment.