Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Mar 14, 2022
1 parent 2bb2e51 commit c47cb20
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions egui_demo_lib/src/wrap_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ pub struct WrapApp {
}

impl WrapApp {
pub fn new(cc: &epi::CreationContext<'_>) -> Self {
pub fn new(_cc: &epi::CreationContext<'_>) -> Self {
#[cfg(feature = "persistence")]
if let Some(storage) = cc.storage {
if let Some(storage) = _cc.storage {
return epi::get_value(storage, epi::APP_KEY).unwrap_or_default();
}
Self::default()
Expand Down
1 change: 0 additions & 1 deletion egui_glium/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//!
//! The main type you want to use is [`EguiGlium`].
//!
//! This library is an [`epi`] backend.
//! If you are writing an app, you may want to look at [`eframe`](https://docs.rs/eframe) instead.

// Forbid warnings in release builds:
Expand Down
1 change: 0 additions & 1 deletion egui_glow/src/epi_backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ pub fn run(app_name: &str, native_options: &epi::NativeOptions, app_creator: epi
let mut app = app_creator(&epi::CreationContext {
egui_ctx: integration.egui_ctx.clone(),
integration_info: integration.frame.info(),
#[cfg(feature = "persistence")]
storage: integration.persistence.storage(),
gl: gl.clone(),
});
Expand Down
1 change: 0 additions & 1 deletion epi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ pub struct CreationContext<'s> {
pub integration_info: IntegrationInfo,

/// You can use the storage to restore app state(requires the "persistence" feature).
#[cfg(feature = "persistence")]
pub storage: Option<&'s dyn Storage>,

/// The [`glow::Context`] allows you to initialize OpenGL resources (e.g. shaders) that
Expand Down

0 comments on commit c47cb20

Please sign in to comment.