I should set up git pre-push hooks. Also, I am surprised this needed a fmt, and would not add all the extra vertical space if it were up to me, but the reason we use default rustfmt is to avoid spending mental energy on such details.
This commit is contained in:
Raph Levien 2023-05-18 11:18:22 -07:00
parent 8f413c5b44
commit 8158e77859

View file

@ -106,7 +106,9 @@ async fn render(mut scenes: SceneSet, index: usize, args: &Args) -> Result<()> {
interactive: false, interactive: false,
complexity: 0, complexity: 0,
}; };
example_scene.function.render(&mut builder, &mut scene_params); example_scene
.function
.render(&mut builder, &mut scene_params);
let mut transform = Affine::IDENTITY; let mut transform = Affine::IDENTITY;
let (width, height) = if let Some(resolution) = scene_params.resolution { let (width, height) = if let Some(resolution) = scene_params.resolution {
let ratio = resolution.x / resolution.y; let ratio = resolution.x / resolution.y;