Compare commits

..

No commits in common. "05cf805c03d27897ecfe080bc5653b385951a30c" and "6d3a07975dfe2bc61dafcd414a5e1ff0ec46dfc9" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View file

@ -3,8 +3,6 @@
#![allow(non_snake_case)]
#![allow(unused_imports)]
#![allow(dead_code)]
#![allow(clippy::complexity)]
#![allow(clippy::style)]
include!(concat!(env!("OUT_DIR"), "/glfw_vk_bindings.rs"));
pub fn VK_MAKE_VERSION(major: u32, minor: u32, patch: u32) -> u32 {

View file

@ -6,15 +6,15 @@ macro_rules! cleanup_func {
$(var_pair: $orig_var:expr, $new_var:ident),*) => {
$(let $new_var = $orig_var;)*
struct $name <T: Fn()> {
struct $name <T: Fn() -> ()> {
func: T,
}
impl<T> Drop for $name <T> where T: Fn() {
impl<T> Drop for $name <T> where T: Fn() -> () {
fn drop(&mut self) {
(self.func)();
}
}
impl<T> $name <T> where T: Fn() {
impl<T> $name <T> where T: Fn() -> () {
fn new(func: T) -> Self {
Self {
func,