cargo fmt

This commit is contained in:
2025-03-24 16:27:11 -04:00
parent 3a9940dfba
commit f0d4e883f6
7 changed files with 313 additions and 86 deletions

View File

@@ -17,11 +17,7 @@ impl Clone for Buf {
impl Buf {
pub fn new(width: usize, height: usize, buf: Vec<f32>) -> Self {
Buf {
width,
height,
buf,
}
Buf { width, height, buf }
}
// Truncate x and y and return a corresponding index into the data slice.
@@ -36,4 +32,4 @@ impl Buf {
pub fn get_buf(&self, x: f32, y: f32) -> f32 {
self.buf[self.index(x, y)]
}
}
}