Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbat00 committed Jan 7, 2024
1 parent c0d9e7c commit 7fd3ede
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ use crate::{
render_systems::{EguiTransforms, ExtractedEguiManagedTextures},
systems::*,
};

#[cfg(all(
feature = "manage_clipboard",
not(any(target_arch = "wasm32", target_os = "android"))
))]
use arboard::Clipboard;
use bevy::{
app::{App, Last, Plugin, PostUpdate, PreStartup, PreUpdate},
asset::{load_internal_asset, AssetEvent, Assets, Handle},
Expand Down Expand Up @@ -93,12 +97,15 @@ use bevy::{
window::{PrimaryWindow, Window},
};
use std::borrow::Cow;

#[cfg(all(feature = "manage_clipboard", not(any(target_arch = "wasm32", target_os = "android"))))]
use arboard::Clipboard;
#[cfg(all(feature = "manage_clipboard", not(any(target_arch = "wasm32", target_os = "android"))))]
#[cfg(all(
feature = "manage_clipboard",
not(any(target_arch = "wasm32", target_os = "android"))
))]
use std::cell::{RefCell, RefMut};
#[cfg(all(feature = "manage_clipboard", not(any(target_arch = "wasm32", target_os = "android"))))]
#[cfg(all(
feature = "manage_clipboard",
not(any(target_arch = "wasm32", target_os = "android"))
))]
use thread_local::ThreadLocal;

/// Adds all Egui resources and render graph nodes.
Expand Down Expand Up @@ -580,10 +587,8 @@ impl Plugin for EguiPlugin {
let world = &mut app.world;
world.init_resource::<EguiSettings>();
world.init_resource::<EguiManagedTextures>();

#[cfg(all(feature = "manage_clipboard", not(target_os = "android")))]
world.init_resource::<EguiClipboard>();

world.init_resource::<EguiUserTextures>();
world.init_resource::<EguiMousePosition>();
world.insert_resource(TouchId::default());
Expand Down

0 comments on commit 7fd3ede

Please sign in to comment.