Skip to content

Commit f603602

Browse files
rustfmt
1 parent 42602b0 commit f603602

1 file changed

Lines changed: 17 additions & 4 deletions

File tree

  • crates/cursor-info/examples

crates/cursor-info/examples/cli.rs

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn run() {
5454
cursor_lookup.insert(hash, name);
5555
}
5656

57-
// return;
57+
return;
5858

5959
loop {
6060
#[allow(deprecated)]
@@ -179,7 +179,14 @@ fn run() {
179179

180180
// Create DIB section
181181
let mut bits: *mut std::ffi::c_void = std::ptr::null_mut();
182-
let dib = CreateDIBSection(Some(mem_dc), &bitmap_info, DIB_RGB_COLORS, &mut bits, None, 0);
182+
let dib = CreateDIBSection(
183+
Some(mem_dc),
184+
&bitmap_info,
185+
DIB_RGB_COLORS,
186+
&mut bits,
187+
None,
188+
0,
189+
);
183190

184191
if dib.is_err() {
185192
// Clean up
@@ -207,9 +214,15 @@ fn run() {
207214

208215
// Draw the cursor onto our bitmap with transparency
209216
if DrawIconEx(
210-
mem_dc, 0, 0, hCursor.into(), 0, // Use actual size
217+
mem_dc,
218+
0,
219+
0,
220+
hCursor.into(),
221+
0, // Use actual size
211222
0, // Use actual size
212-
0, None, DI_NORMAL,
223+
0,
224+
None,
225+
DI_NORMAL,
213226
)
214227
.is_err()
215228
{

0 commit comments

Comments
 (0)