Skip to content

Commit abe0848

Browse files
committed
fmt
1 parent 73b6fad commit abe0848

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

crates/processing_pyo3/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ thread_local! {
4949
static LAST_GLOBALS: RefCell<HashMap<&'static str, Py<PyAny>>> = RefCell::new(HashMap::new());
5050
}
5151

52-
5352
/// Writes a new value to globals, iff the new value does not match a previous tracked value.
5453
pub(crate) fn set_tracked<'py, V>(
5554
globals: &Bound<'py, PyAny>,

crates/processing_render/src/surface.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ pub fn resize(
368368
let scale = window.resolution.scale_factor();
369369
let physical_w = (width as f32 * scale) as u32;
370370
let physical_h = (height as f32 * scale) as u32;
371-
window.resolution.set_physical_resolution(physical_w, physical_h);
371+
window
372+
.resolution
373+
.set_physical_resolution(physical_w, physical_h);
372374
Ok(())
373375
} else {
374376
Err(error::ProcessingError::SurfaceNotFound)
@@ -383,10 +385,9 @@ pub fn set_pixel_density(
383385
let logical_w = window.resolution.width();
384386
let logical_h = window.resolution.height();
385387
window.resolution.set_scale_factor_override(Some(density));
386-
window.resolution.set_physical_resolution(
387-
(logical_w * density) as u32,
388-
(logical_h * density) as u32,
389-
);
388+
window
389+
.resolution
390+
.set_physical_resolution((logical_w * density) as u32, (logical_h * density) as u32);
390391
Ok(())
391392
} else {
392393
Err(error::ProcessingError::SurfaceNotFound)

0 commit comments

Comments
 (0)