AcctIdx: handle future config defaults (#19967)
This commit is contained in:
committed by
GitHub
parent
0404e75e96
commit
99f5684dc4
@ -4112,7 +4112,10 @@ pub mod tests {
|
||||
|
||||
#[test]
|
||||
#[should_panic(expected = "bins.is_power_of_two()")]
|
||||
#[allow(clippy::field_reassign_with_default)]
|
||||
fn test_illegal_bins() {
|
||||
AccountsIndex::<bool>::new(Some(AccountsIndexConfig { bins: Some(3) }));
|
||||
let mut config = AccountsIndexConfig::default();
|
||||
config.bins = Some(3);
|
||||
AccountsIndex::<bool>::new(Some(config));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user