Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chitoyuu committed Jan 4, 2023
1 parent a73c7ed commit b19e19d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion gdnative-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ mod header_binding {
// New NDK
let available_ndk_versions: Vec<_> = std::fs::read_dir(android_ndk_folder.clone())
.unwrap()
.into_iter()
.map(|dir| dir.unwrap().path())
.collect();

Expand Down
1 change: 1 addition & 0 deletions gdnative-sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ fn map_option_to_init_error<T>(t: Option<T>, message: &'static str) -> Result<T,
}
}

#[allow(clippy::unnecessary_cast)] // False positives: casts necessary for cross-platform
unsafe fn find_version(
mut api: *const godot_gdnative_api_struct,
api_type: GDNATIVE_API_TYPES,
Expand Down

0 comments on commit b19e19d

Please sign in to comment.