Skip to content

Commit 9cc5448

Browse files
committed
clippy
1 parent 10d7a47 commit 9cc5448

File tree

5 files changed

+3
-34
lines changed

5 files changed

+3
-34
lines changed

hook/src/ue.rs

-21
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,6 @@ pub struct FMallocVTable {
8888
pub get_descriptive_name: *const (),
8989
}
9090

91-
#[derive(Debug, Clone, Copy)]
92-
#[repr(C)]
93-
pub struct FWeakObjectPtr {
94-
object_index: i32,
95-
object_serial_number: i32,
96-
}
97-
9891
bitflags::bitflags! {
9992
#[derive(Debug, Clone)]
10093
pub struct EObjectFlags: u32 {
@@ -295,20 +288,6 @@ pub struct FNameEntryId {
295288
pub value: u32,
296289
}
297290

298-
#[derive(Debug)]
299-
#[repr(C)]
300-
pub struct TSharedPtr<T> {
301-
pub object: *const T,
302-
pub reference_controller: *const FReferenceControllerBase,
303-
}
304-
305-
#[derive(Debug)]
306-
#[repr(C)]
307-
pub struct FReferenceControllerBase {
308-
pub shared_reference_count: i32,
309-
pub weak_reference_count: i32,
310-
}
311-
312291
pub type FString = TArray<u16>;
313292

314293
#[derive(Debug)]

src/gui/message.rs

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ use std::{
88
};
99

1010
use anyhow::Result;
11-
use eframe::egui;
1211
use mint_lib::mod_info::MetaConfig;
1312
use tokio::{
1413
sync::mpsc::{self, Sender},

src/gui/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ use anyhow::{anyhow, Context, Result};
1919
use eframe::egui::{Button, CollapsingHeader, RichText, Visuals};
2020
use eframe::epaint::{Pos2, Vec2};
2121
use eframe::{
22-
egui::{self, FontSelection, Layout, TextFormat, Ui},
22+
egui::{FontSelection, Layout, TextFormat, Ui},
2323
emath::{Align, Align2},
2424
epaint::{text::LayoutJob, Color32, Stroke},
2525
};
2626
use egui_commonmark::{CommonMarkCache, CommonMarkViewer};
27+
use mint_lib::mod_info::{ModioTags, RequiredStatus};
2728
use tokio::{
2829
sync::mpsc::{self, Receiver, Sender},
2930
task::JoinHandle,
@@ -36,8 +37,7 @@ use crate::{
3637
integrate::uninstall,
3738
is_drg_pak,
3839
providers::{
39-
ApprovalStatus, FetchProgress, ModInfo, ModSpecification, ModStore, ModioTags,
40-
ProviderFactory, RequiredStatus,
40+
ApprovalStatus, FetchProgress, ModInfo, ModSpecification, ModStore, ProviderFactory,
4141
},
4242
state::{ModConfig, ModData_v0_1_0 as ModData, ModOrGroup, ModProfile, State},
4343
};

src/gui/named_combobox.rs

-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
use std;
2-
31
use super::{colors, custom_popup_above_or_below_widget, is_committed};
42

5-
use eframe::egui;
6-
73
use crate::state::{ModData_v0_1_0 as ModData, ModProfile_v0_1_0 as ModProfile};
84

95
#[derive(Debug, Clone)]
@@ -23,9 +19,6 @@ impl Default for NamePopup {
2319

2420
pub trait NamedEntries<E> {
2521
fn len(&self) -> usize;
26-
fn is_empty(&self) -> bool {
27-
self.len() == 0
28-
}
2922
fn contains(&self, name: &str) -> bool;
3023
fn select(&mut self, name: String);
3124
fn selected_name(&self) -> &str;

src/gui/toggle_switch.rs

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Adapted from
22
// <https://github.com/emilk/egui/blob/master/crates/egui_demo_lib/src/demo/toggle_switch.rs>.
33

4-
use eframe::egui;
5-
64
fn toggle_ui(ui: &mut egui::Ui, on: &mut bool) -> egui::Response {
75
let desired_size = ui.spacing().interact_size.y * egui::vec2(2.0, 1.0);
86
let (rect, mut response) = ui.allocate_exact_size(desired_size, egui::Sense::click());

0 commit comments

Comments
 (0)