Skip to content

Commit

Permalink
fix: Add mutants::sip cfg attribute to StackerDBErrorCodes::from_code
Browse files Browse the repository at this point in the history
Co-authored-by: Hank Stoever <hstove@gmail.com>
  • Loading branch information
netrome and hstove committed Mar 7, 2024
1 parent bc0858b commit b4274f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stackslib/src/net/api/poststackerdbchunk.rs
Expand Up @@ -146,6 +146,7 @@ impl StackerDBErrorCodes {
})
}

#[cfg_attr(test, mutants::skip)]
pub fn from_code(code: u32) -> Option<Self> {
match code {
0 => Some(Self::DataAlreadyExists),
Expand Down

0 comments on commit b4274f3

Please sign in to comment.