Skip to content

Commit

Permalink
Fix release profile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewliebenow committed Oct 20, 2024
1 parent ed38f79 commit 50daa44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/uu/stty/src/stty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,9 @@ fn get_special_character_indices_hash_map() -> HashMap<&'static str, SpecialChar
let mut hash_map = HashMap::<&'static str, SpecialCharacterIndices>::with_capacity(18_usize);

Check warning on line 829 in src/uu/stty/src/stty.rs

View check run for this annotation

Codecov / codecov/patch

src/uu/stty/src/stty.rs#L828-L829

Added lines #L828 - L829 were not covered by tests

let mut insert = |key: &'static str, value: SpecialCharacterIndices| {
debug_assert!(hash_map.insert(key, value).is_none());
let op = hash_map.insert(key, value);

Check warning on line 832 in src/uu/stty/src/stty.rs

View check run for this annotation

Codecov / codecov/patch

src/uu/stty/src/stty.rs#L831-L832

Added lines #L831 - L832 were not covered by tests

debug_assert!(op.is_none());
};

Check warning on line 835 in src/uu/stty/src/stty.rs

View check run for this annotation

Codecov / codecov/patch

src/uu/stty/src/stty.rs#L834-L835

Added lines #L834 - L835 were not covered by tests

/* #region POSIX */
Expand Down

0 comments on commit 50daa44

Please sign in to comment.