Directly qualified function makes cargo happy

This commit is contained in:
Mikayla Maki 2022-06-29 18:34:02 -07:00
parent ab5247c62e
commit 5bc0acd88c

View File

@ -417,7 +417,7 @@ mod tests {
fn test_rgb_for_index() {
//Test every possible value in the color cube
for i in 16..=231 {
let (r, g, b) = rgb_for_index(&(i as u8));
let (r, g, b) = crate::terminal_element::rgb_for_index(&(i as u8));
assert_eq!(i, 16 + 36 * r + 6 * g + b);
}
}