Run cargo fmt

This commit is contained in:
Aaron Loucks 2019-05-25 15:38:28 -04:00
parent 1ba1d46eb2
commit 634b618852
23 changed files with 40 additions and 43 deletions

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use crate::vk;
use crate::RawPtr;
use std::mem; use std::mem;
use std::os::raw::c_void; use std::os::raw::c_void;
use std::ptr; use std::ptr;
use crate::vk;
use crate::RawPtr;
#[allow(non_camel_case_types)] #[allow(non_camel_case_types)]
pub trait DeviceV1_1: DeviceV1_0 { pub trait DeviceV1_1: DeviceV1_0 {

View file

@ -1,5 +1,7 @@
use crate::instance::Instance; use crate::instance::Instance;
use crate::prelude::*; use crate::prelude::*;
use crate::vk;
use crate::RawPtr;
use shared_library::dynamic_library::DynamicLibrary; use shared_library::dynamic_library::DynamicLibrary;
use std::error::Error; use std::error::Error;
use std::fmt; use std::fmt;
@ -9,8 +11,6 @@ use std::os::raw::c_void;
use std::path::Path; use std::path::Path;
use std::ptr; use std::ptr;
use std::sync::Arc; use std::sync::Arc;
use crate::vk;
use crate::RawPtr;
#[cfg(windows)] #[cfg(windows)]
const LIB_PATH: &'static str = "vulkan-1.dll"; const LIB_PATH: &'static str = "vulkan-1.dll";

View file

@ -23,9 +23,9 @@
* *
**********************************************************************************************************************/ **********************************************************************************************************************/
use crate::vk::*;
use std::fmt; use std::fmt;
use std::os::raw::*; use std::os::raw::*;
use crate::vk::*;
// Extension: `VK_AMD_gpa_interface` // Extension: `VK_AMD_gpa_interface`

View file

@ -1,9 +1,9 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{DeviceV1_0, InstanceV1_0}; use crate::version::{DeviceV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct DebugMarker { pub struct DebugMarker {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct DebugReport { pub struct DebugReport {

View file

@ -1,9 +1,9 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::{vk, RawPtr}; use crate::{vk, RawPtr};
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct DebugUtils { pub struct DebugUtils {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct AndroidSurface { pub struct AndroidSurface {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{DeviceV1_0, InstanceV1_0}; use crate::version::{DeviceV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct DisplaySwapchain { pub struct DisplaySwapchain {

View file

@ -1,11 +1,11 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use std::ptr;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
use std::ptr;
#[derive(Clone)] #[derive(Clone)]
pub struct Surface { pub struct Surface {

View file

@ -1,11 +1,11 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use std::ptr;
use crate::version::{DeviceV1_0, InstanceV1_0}; use crate::version::{DeviceV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
use std::ptr;
#[derive(Clone)] #[derive(Clone)]
pub struct Swapchain { pub struct Swapchain {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct WaylandSurface { pub struct WaylandSurface {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct Win32Surface { pub struct Win32Surface {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct XcbSurface { pub struct XcbSurface {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct XlibSurface { pub struct XlibSurface {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct IOSSurface { pub struct IOSSurface {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{EntryV1_0, InstanceV1_0}; use crate::version::{EntryV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct MacOSSurface { pub struct MacOSSurface {

View file

@ -1,8 +1,8 @@
#![allow(dead_code)] #![allow(dead_code)]
use std::ffi::CStr;
use std::mem;
use crate::version::{DeviceV1_0, InstanceV1_0}; use crate::version::{DeviceV1_0, InstanceV1_0};
use crate::vk; use crate::vk;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct MeshShader { pub struct MeshShader {

View file

@ -1,10 +1,10 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::prelude::*; use crate::prelude::*;
use std::ffi::CStr;
use std::mem;
use crate::version::{DeviceV1_0, InstanceV1_0, InstanceV1_1}; use crate::version::{DeviceV1_0, InstanceV1_0, InstanceV1_1};
use crate::vk; use crate::vk;
use crate::RawPtr; use crate::RawPtr;
use std::ffi::CStr;
use std::mem;
#[derive(Clone)] #[derive(Clone)]
pub struct RayTracing { pub struct RayTracing {

View file

@ -1,11 +1,11 @@
#![allow(dead_code)] #![allow(dead_code)]
use crate::device::Device; use crate::device::Device;
use crate::prelude::*; use crate::prelude::*;
use crate::vk;
use crate::RawPtr;
use std::mem; use std::mem;
use std::os::raw::c_char; use std::os::raw::c_char;
use std::ptr; use std::ptr;
use crate::vk;
use crate::RawPtr;
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkInstance.html>"] #[doc = "<https://www.khronos.org/registry/vulkan/specs/1.1-extensions/man/html/VkInstance.html>"]
#[derive(Clone)] #[derive(Clone)]

View file

@ -1,9 +1,9 @@
use crate::vk;
use std::iter::Iterator; use std::iter::Iterator;
use std::marker::PhantomData; use std::marker::PhantomData;
use std::mem::size_of; use std::mem::size_of;
use std::os::raw::c_void; use std::os::raw::c_void;
use std::{io, slice}; use std::{io, slice};
use crate::vk;
/// `Align` handles dynamic alignment. The is useful for dynamic uniform buffers where /// `Align` handles dynamic alignment. The is useful for dynamic uniform buffers where
/// the alignment might be different. For example a 4x4 f32 matrix has a size of 64 bytes /// the alignment might be different. For example a 4x4 f32 matrix has a size of 64 bytes

View file

@ -1,4 +1,3 @@
use ash::vk; use ash::vk;
#[test] #[test]

View file

@ -1,4 +1,3 @@
use generator::write_source_code; use generator::write_source_code;
use std::path::Path; use std::path::Path;

View file

@ -1,6 +1,5 @@
#![recursion_limit = "256"] #![recursion_limit = "256"]
#[macro_use] #[macro_use]
extern crate nom; extern crate nom;
use proc_macro2; use proc_macro2;