build: remove unused imports and mutability
This commit is contained in:
parent
f99109bf8e
commit
e529c011b0
4 changed files with 3 additions and 8 deletions
|
@ -12,7 +12,6 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use crate::gui::PlatformApp;
|
||||
use crate::gui::platform::PlatformCallbacks;
|
||||
|
||||
#[derive(Default)]
|
||||
|
|
|
@ -13,8 +13,8 @@
|
|||
// limitations under the License.
|
||||
|
||||
use std::cmp::min;
|
||||
use std::sync::RwLock;
|
||||
use std::sync::atomic::{AtomicBool, Ordering};
|
||||
use std::sync::{RwLock, RwLockWriteGuard};
|
||||
|
||||
use egui::{Align2, RichText, Rounding, Stroke, Vec2};
|
||||
use egui::epaint::RectShape;
|
||||
|
@ -178,7 +178,7 @@ impl Modal {
|
|||
|
||||
/// Draw [`egui::Window`] with provided content.
|
||||
fn window_ui(&self, ui: &mut egui::Ui, add_content: impl FnOnce(&mut egui::Ui, &Modal)) {
|
||||
let mut rect = ui.ctx().screen_rect();
|
||||
let rect = ui.ctx().screen_rect();
|
||||
egui::Window::new("modal_bg_window")
|
||||
.title_bar(false)
|
||||
.resizable(false)
|
||||
|
|
|
@ -12,9 +12,7 @@
|
|||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
use eframe::emath::Align;
|
||||
use egui::{Id, Layout, RichText, TextStyle, Ui, Widget};
|
||||
use egui::os::OperatingSystem;
|
||||
use egui::{Id, RichText, TextStyle, Ui, Widget};
|
||||
use egui_extras::{Size, StripBuilder};
|
||||
use grin_core::global::ChainTypes;
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@
|
|||
#[macro_use]
|
||||
extern crate rust_i18n;
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
use egui::{Context, Stroke};
|
||||
#[cfg(target_os = "android")]
|
||||
use winit::platform::android::activity::AndroidApp;
|
||||
|
|
Loading…
Reference in a new issue