Use rustc-check-cfg (#3682)
This commit is contained in:
parent
7f8771a362
commit
16fd2baba0
3 changed files with 22 additions and 4 deletions
|
|
@ -103,11 +103,14 @@ impl<T> EventLoopBuilder<T> {
|
|||
///
|
||||
/// [`platform`]: crate::platform
|
||||
#[cfg_attr(
|
||||
android,
|
||||
android_platform,
|
||||
doc = "[`.with_android_app(app)`]: \
|
||||
crate::platform::android::EventLoopBuilderExtAndroid::with_android_app"
|
||||
)]
|
||||
#[cfg_attr(not(android), doc = "[`.with_android_app(app)`]: #only-available-on-android")]
|
||||
#[cfg_attr(
|
||||
not(android_platform),
|
||||
doc = "[`.with_android_app(app)`]: #only-available-on-android"
|
||||
)]
|
||||
#[inline]
|
||||
pub fn build(&mut self) -> Result<EventLoop<T>, EventLoopError> {
|
||||
let _span = tracing::debug_span!("winit::EventLoopBuilder::build").entered();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue