cargo fmt
This commit is contained in:
@@ -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)]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user