diff options
author | Tim Oram <dev@mitmaro.ca> | 2022-10-10 22:40:18 -0230 |
---|---|---|
committer | Tim Oram <dev@mitmaro.ca> | 2022-10-18 10:12:37 -0230 |
commit | f0258ef76a053b346b3ca7b3fdf529bdb93c3d2e (patch) | |
tree | 7cb7a33893ffcf1d2f8ad689ba21cb11917317b9 /src/config | |
parent | 5c052f6eca0552f7df1511e94c81ee5406f5ed73 (diff) |
Allow ok clippy::as_conversions
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/src/utils/get_unsigned_integer.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/config/src/utils/get_unsigned_integer.rs b/src/config/src/utils/get_unsigned_integer.rs index 2c07864..6b72bd2 100644 --- a/src/config/src/utils/get_unsigned_integer.rs +++ b/src/config/src/utils/get_unsigned_integer.rs @@ -57,12 +57,14 @@ mod tests { assert_ok_eq!(get_unsigned_integer(Some(&git_config), "test.value", 24), 0); }); } + #[test] + #[allow(clippy::as_conversions)] fn read_value_max() { with_git_config(&["[test]", format!("value = {}", i32::MAX).as_str()], |git_config| { assert_ok_eq!( get_unsigned_integer(Some(&git_config), "test.value", 24), - i32::MAX as u32 + i32::MAX as u32 // git only supports i32s, so use i32 max ); }); } |