mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
Add missing inline documentation for android code (#8893)
# Objective - Document android code that is currently causing clippy warnings due to not being documented ## Solution - Document the two previously undocumented items
This commit is contained in:
parent
f63656051a
commit
96b9b6c8ad
2 changed files with 2 additions and 0 deletions
|
@ -22,6 +22,7 @@ pub struct AndroidAssetIo {
|
|||
}
|
||||
|
||||
impl AndroidAssetIo {
|
||||
/// Creates a new [`AndroidAssetIo`] at the given root path
|
||||
pub fn new<P: AsRef<Path>>(path: P) -> Self {
|
||||
AndroidAssetIo {
|
||||
root_path: path.as_ref().to_owned(),
|
||||
|
|
|
@ -59,6 +59,7 @@ use crate::converters::convert_winit_theme;
|
|||
#[cfg(target_arch = "wasm32")]
|
||||
use crate::web_resize::{CanvasParentResizeEventChannel, CanvasParentResizePlugin};
|
||||
|
||||
/// [`AndroidApp`] provides an interface to query the application state as well as monitor events (for example lifecycle and input events)
|
||||
#[cfg(target_os = "android")]
|
||||
pub static ANDROID_APP: std::sync::OnceLock<AndroidApp> = std::sync::OnceLock::new();
|
||||
|
||||
|
|
Loading…
Reference in a new issue