E0088

E0088#

Warning name: guard_redundant_bang

The condition or pattern of a guard! is exhaustive, so it cannot fail and the explicitly terminating form is unnecessary.

Erroneous example#

///|
pub fn identity(value : Int) -> Int {
  guard! value is result
  result
}

Suggestion#

Replace guard! with guard.

///|
pub fn identity(value : Int) -> Int {
  guard value is result
  result
}