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)]
use crate::prelude::*;
use crate::vk;
use crate::RawPtr;
use std::mem;
use std::os::raw::c_void;
use std::ptr;
use crate::vk;
use crate::RawPtr;
#[allow(non_camel_case_types)]
pub trait DeviceV1_1: DeviceV1_0 {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,9 @@
use crate::vk;
use std::iter::Iterator;
use std::marker::PhantomData;
use std::mem::size_of;
use std::os::raw::c_void;
use std::{io, slice};
use crate::vk;
/// `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

View file

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

View file

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

View file

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