E0088#
警告名:guard_redundant_bang
guard! の条件またはパターンは網羅的で失敗しないため、明示的に終了する形式は不要です。
誤った例#
///|
pub fn identity(value : Int) -> Int {
guard! value is result
result
}
修正方法#
guard! を guard に置き換えます。
///|
pub fn identity(value : Int) -> Int {
guard value is result
result
}