Fix various new clippy warnings

This commit is contained in:
Sebastian Dröge 2020-07-28 13:26:17 +03:00
parent 01397b213d
commit a426c03720
2 changed files with 2 additions and 1 deletions

View file

@ -82,6 +82,7 @@ void main() {
#[allow(clippy::unreadable_literal)] #[allow(clippy::unreadable_literal)]
#[allow(clippy::unused_unit)] #[allow(clippy::unused_unit)]
#[allow(clippy::too_many_arguments)] #[allow(clippy::too_many_arguments)]
#[allow(clippy::manual_non_exhaustive)]
mod gl { mod gl {
pub use self::Gles2 as Gl; pub use self::Gles2 as Gl;
include!(concat!(env!("OUT_DIR"), "/test_gl_bindings.rs")); include!(concat!(env!("OUT_DIR"), "/test_gl_bindings.rs"));

View file

@ -488,7 +488,7 @@ impl<'a> EncodingContainerProfileBuilder<'a> {
for profile in self.profiles { for profile in self.profiles {
container_profile container_profile
.add_profile(&profile) .add_profile(&profile)
.or_else(|_error| Err(EncodingProfileBuilderError(())))?; .map_err(|_error| EncodingProfileBuilderError(()))?;
} }
set_common_fields(&container_profile, &self.base); set_common_fields(&container_profile, &self.base);