From 2111c1248b08236a839dcf22036f92735bceb31c Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:21 +0100 Subject: chore(all): style formatting and clippy fixes --- stockton-types/src/lib.rs | 6 +++--- stockton-types/src/world.rs | 18 ++++++++---------- 2 files changed, 11 insertions(+), 13 deletions(-) (limited to 'stockton-types') diff --git a/stockton-types/src/lib.rs b/stockton-types/src/lib.rs index bf690f1..ee01019 100644 --- a/stockton-types/src/lib.rs +++ b/stockton-types/src/lib.rs @@ -1,4 +1,4 @@ -// Copyright (C) Oscar Shrimpton 2019 +// Copyright (C) Oscar Shrimpton 2019 // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free @@ -14,8 +14,8 @@ // with this program. If not, see . //! Common types for all stockton crates. -extern crate stockton_levels; extern crate nalgebra_glm as na; +extern crate stockton_levels; pub mod world; pub use world::World; @@ -32,4 +32,4 @@ pub type Vector2i = na::IVec2; pub type Vector3i = na::IVec3; /// Alias for convenience -pub type Matrix4 = na::Mat4x4; \ No newline at end of file +pub type Matrix4 = na::Mat4x4; diff --git a/stockton-types/src/world.rs b/stockton-types/src/world.rs index 69a7ad6..2bb0273 100644 --- a/stockton-types/src/world.rs +++ b/stockton-types/src/world.rs @@ -1,4 +1,4 @@ -// Copyright (C) Oscar Shrimpton 2019 +// Copyright (C) Oscar Shrimpton 2019 // This program is free software: you can redistribute it and/or modify it // under the terms of the GNU General Public License as published by the Free @@ -19,15 +19,13 @@ use stockton_levels::prelude::*; /// A loaded world. pub struct World> { - pub map: T, + pub map: T, } impl> World { - /// Create a new world from a level. - /// The level can be any format, as long as it has the required features of a bsp. - pub fn new(map: T) -> World { - World { - map - } - } -} \ No newline at end of file + /// Create a new world from a level. + /// The level can be any format, as long as it has the required features of a bsp. + pub fn new(map: T) -> World { + World { map } + } +} -- cgit v1.2.3