From c4c487ccc4c10d09ca00c725354f09e32b4805ec Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Sat, 8 Apr 2017 10:50:16 -0400 Subject: [PATCH] Reformat. --- mandelwow.rs | 8 ++++---- support/vec3.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/mandelwow.rs b/mandelwow.rs index 72e3f86..e2de8b3 100644 --- a/mandelwow.rs +++ b/mandelwow.rs @@ -160,10 +160,10 @@ fn bounding_box(display: &glium::Display, depth: glium::Depth { test: glium::draw_parameters::DepthTest::IfLess, write: true, - .. Default::default() + ..Default::default() }, blend: glium::Blend::alpha_blending(), - .. Default::default() + ..Default::default() }; let front_indices = IndexBuffer::new(display, PrimitiveType::LineLoop, @@ -238,10 +238,10 @@ fn mandel(display: &glium::Display, depth: glium::Depth { test: glium::draw_parameters::DepthTest::IfLess, write: true, - .. Default::default() + ..Default::default() }, blend: glium::Blend::alpha_blending(), - .. Default::default() + ..Default::default() }; frame.draw(&vb, &indices, program, uniforms, ¶ms).unwrap(); diff --git a/support/vec3.rs b/support/vec3.rs index 85d3cc3..10820fb 100644 --- a/support/vec3.rs +++ b/support/vec3.rs @@ -7,7 +7,7 @@ use std::ops::Sub; use std::ops::Mul; #[derive(Default, PartialEq, Debug, Clone, Copy)] -pub struct Vec3 (pub f32, pub f32, pub f32); +pub struct Vec3(pub f32, pub f32, pub f32); impl Add for Vec3 { type Output = Vec3; -- 2.25.1