Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
icefoxen committed Jul 12, 2019
1 parent 4b4c62b commit 7651dbe
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 15 deletions.
5 changes: 0 additions & 5 deletions examples/cube.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ struct MainState {

impl MainState {
fn new(ctx: &mut Context) -> Self {
/*
let color_view = graphics::screen_render_target(ctx);
let depth_view = graphics::depth_view(ctx);
let factory = graphics::factory(ctx);
*/
let (factory, _device, _encoder, depth_view, color_view) = graphics::gfx_objects(ctx);

// Shaders.
Expand Down
1 change: 0 additions & 1 deletion src/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ pub mod winit_event {
pub use crate::input::gamepad::GamepadId;
pub use crate::input::keyboard::{KeyCode, KeyMods};


use self::winit_event::*;
/// `winit` event loop.
pub use winit::EventsLoop;
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/canvas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::error::*;
use crate::graphics::*;
use crate::Context;

/// A generic canvas independent of graphics backend. This type should
/// A generic canvas independent of graphics backend. This type should
/// never need to be used directly; use [`graphics::Canvas`](type.Canvas.html)
/// instead.
#[derive(Debug)]
Expand Down
2 changes: 1 addition & 1 deletion src/graphics/text.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use glyph_brush::GlyphPositioner;
use glyph_brush::{self, Layout, SectionText, VariedSection, FontId};
use glyph_brush::{self, FontId, Layout, SectionText, VariedSection};
pub use glyph_brush::{rusttype::Scale, HorizontalAlign as Align};
use mint;
use std::borrow::Cow;
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
//! .unwrap();
//!
//! // Create an instance of your event handler.
//! // Usually, you should provide it with the Context object
//! // Usually, you should provide it with the Context object
//! // so it can load resources like images during setup.
//! let mut my_game = MyGame::new(&mut ctx);
//!
Expand Down
10 changes: 4 additions & 6 deletions src/tests/conf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ pub fn context_build_tests() {
conf::Conf::default().window_mode(conf::WindowMode::default().dimensions(800.0, 600.0)),
conf::Conf::default().window_mode(conf::WindowMode::default().dimensions(400.0, 400.0)),
conf::Conf::default().window_mode(conf::WindowMode::default().resizable(false)),
conf::Conf::default().window_mode(
conf::WindowMode::default().fullscreen_type(conf::FullscreenType::Windowed),
),
conf::Conf::default()
.window_mode(conf::WindowMode::default()
.fullscreen_type(conf::FullscreenType::Windowed)),
conf::Conf::default()
.window_mode(conf::WindowMode::default()
.fullscreen_type(conf::FullscreenType::True)),

.window_mode(conf::WindowMode::default().fullscreen_type(conf::FullscreenType::True)),
conf::Conf::default().modules(conf::ModuleConf::default().audio(false)),
];
for conf in confs.into_iter() {
Expand Down

0 comments on commit 7651dbe

Please sign in to comment.