Disable missing_safety_doc

This commit is contained in:
Maik Klein 2020-01-18 14:32:56 +01:00
parent 31d14486e5
commit 17edc8c13c
3 changed files with 3 additions and 3 deletions

View file

@ -199,7 +199,7 @@ impl EntryCustom<Arc<DynamicLibrary>> {
Self::new_custom( Self::new_custom(
|| { || {
DynamicLibrary::open(Some(&Path::new(LIB_PATH))) DynamicLibrary::open(Some(&Path::new(LIB_PATH)))
.map_err(|err| LoadingError::LibraryLoadError(err.clone())) .map_err(LoadingError::LibraryLoadError)
.map(Arc::new) .map(Arc::new)
}, },
|vk_lib, name| unsafe { |vk_lib, name| unsafe {

View file

@ -1,4 +1,4 @@
#![allow(clippy::too_many_arguments)] #![allow(clippy::too_many_arguments, clippy::missing_safety_doc)]
//! # Vulkan API //! # Vulkan API
//! //!
//! <https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/index.html> //! <https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/index.html>

View file

@ -1647,7 +1647,7 @@ pub fn derive_setters(
.map(|extends| { .map(|extends| {
extends extends
.split(',') .split(',')
.filter(|extend| root_struct_names.contains(&extend.to_string())) .filter(|extend| root_struct_names.contains(*extend))
.map(|extends| name_to_tokens(&format!("Extends{}", name_to_tokens(&extends)))) .map(|extends| name_to_tokens(&format!("Extends{}", name_to_tokens(&extends))))
.collect() .collect()
}) })