Skip to content

Commit

Permalink
clippy fixes...
Browse files Browse the repository at this point in the history
  • Loading branch information
atenfyr committed Dec 20, 2024
1 parent d66e0ba commit 2c50ed6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions unreal_asset/unreal_asset_base/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#![deny(missing_docs)]
#![allow(non_upper_case_globals)]
#![allow(unexpected_cfgs)]

//! unreal_asset crate base members
Expand Down
1 change: 1 addition & 0 deletions unreal_asset/unreal_asset_base/src/unversioned/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ impl Usmap {
}

/// Gets all usmap mappings for a given schema
#[allow(elided_named_lifetimes)]
pub fn get_all_properties<'name>(
&'name self,
mut schema_name: &'name str,
Expand Down
2 changes: 2 additions & 0 deletions unreal_mod_integrator/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(unexpected_cfgs)]

use std::env;
use std::fs::{self, OpenOptions};
use std::path::{Path, PathBuf};
Expand Down
3 changes: 2 additions & 1 deletion unreal_mod_manager/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl ModLoaderApp {

// this is just an associated function to avoid upsetting the borrow checker
fn show_version_select(ui: &mut egui::Ui, game_mod: &mut GameMod) {
egui::ComboBox::from_id_source(&game_mod.name)
egui::ComboBox::from_id_salt(&game_mod.name)
.selected_text(format!("{}", game_mod.selected_version))
.width(112.0)
.show_ui(ui, |ui| {
Expand Down Expand Up @@ -739,6 +739,7 @@ impl ModLoaderApp {
});
}

#[allow(unused_variables)]
fn show_error(&self, ctx: &egui::Context, frame: &mut Frame, error: &ModLoaderError) {
egui::Window::new("Critical Error")
.resizable(false)
Expand Down

0 comments on commit 2c50ed6

Please sign in to comment.