Skip to content

Commit 2b35a29

Browse files
committed
fmt
1 parent 260e963 commit 2b35a29

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/attr.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ impl Attributes {
146146
Ok(())
147147
}
148148

149-
150149
/// Number of least significant bits to ignore.
151150
///
152151
/// Useful for generating palettes for VGA, 15-bit textures, or other retro platforms.
@@ -343,8 +342,8 @@ impl Default for Attributes {
343342
}
344343

345344
/// Result of callback in [`Attributes::set_progress_callback`]
345+
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
346346
#[repr(C)]
347-
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
348347
pub enum ControlFlow {
349348
/// Continue processing as normal
350349
Continue = 1,

src/lib.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ fn histogram() {
9595
let mut image2 = attr.new_image(&bitmap2[..], 1, 1, 0.0).unwrap();
9696
hist.add_image(&attr, &mut image2).unwrap();
9797

98-
hist.add_colors(&[HistogramEntry{
99-
color: RGBA::new(255,128,255,128),
98+
hist.add_colors(&[HistogramEntry {
99+
color: RGBA::new(255, 128, 255, 128),
100100
count: 10,
101101
}], 0.0).unwrap();
102102

@@ -206,7 +206,9 @@ fn r_callback_test() {
206206
}
207207
called2.fetch_add(1, SeqCst);
208208
};
209-
let mut img = unsafe { Image::new_fn(&a, get_row, 123, 5, 0.).unwrap() };
209+
let mut img = unsafe {
210+
Image::new_fn(&a, get_row, 123, 5, 0.).unwrap()
211+
};
210212
a.quantize(&mut img).unwrap()
211213
};
212214
let called = called.load(SeqCst);

0 commit comments

Comments
 (0)