From: Bernie Innocenti Date: Sat, 8 Apr 2017 14:50:16 +0000 (-0400) Subject: Reformat. X-Git-Tag: v0.4.0~8 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c4c487ccc4c10d09ca00c725354f09e32b4805ec;p=mandelwow.git Reformat. --- 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;