Skip to content

Commit

Permalink
Satisfy random warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Coffee-Nerd committed Jul 24, 2024
1 parent cfa325a commit 64ca30c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ impl TemplateApp {
}
}

fn handle_lua_execution_window(&mut self, ctx: &egui::Context, ui: &mut egui::Ui) {
fn handle_lua_execution_window(&mut self, ctx: &egui::Context, _ui: &mut egui::Ui) {
if ctx.input(|i| i.key_down(egui::Key::Escape) && i.key_pressed(egui::Key::I)) {
let mut open = self.show_lua_execution_window.borrow_mut();
*open = !*open;
Expand Down
2 changes: 1 addition & 1 deletion src/app/miniwindow.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use egui::{TextEdit, Window};
use egui;

Check failure on line 1 in src/app/miniwindow.rs

View workflow job for this annotation

GitHub Actions / Clippy

this import is redundant

Check failure on line 1 in src/app/miniwindow.rs

View workflow job for this annotation

GitHub Actions / Clippy

this import is redundant

#[derive(serde::Deserialize, serde::Serialize, Default)]
pub struct WindowResizeTest {
Expand Down
2 changes: 1 addition & 1 deletion src/app/settings_window.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use egui::{Color32, ScrollArea, Ui, Visuals, Window};
use egui::{Color32, Ui, Visuals, Window};

#[derive(PartialEq)]
pub enum SettingsCategory {
Expand Down
4 changes: 2 additions & 2 deletions src/app/styles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ pub fn default_style() -> Style {
}

pub fn custom_font() -> FontDefinitions {
let font_ReFixedysMono = include_bytes!("../data/refixedsys-mono.otf").to_vec();
let font_re_fixedys_mono = include_bytes!("../data/refixedsys-mono.otf").to_vec();
let mut font = FontDefinitions::default();
font.font_data.insert(
"ReFixedys Mono".to_string(),
FontData::from_owned(font_ReFixedysMono),
FontData::from_owned(font_re_fixedys_mono),
);
font.families
.get_mut(&FontFamily::Monospace)
Expand Down
6 changes: 3 additions & 3 deletions src/app/telnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ impl TelnetClient {
&mut self,
text: &str,
text_colour: Color32,
back_colour: Color32,
_back_colour: Color32,
) {
self.received_data
.push(vec![(text.to_string(), text_colour)]);
}

pub fn append_ansi_text(&mut self, text: &str) {
pub fn _append_ansi_text(&mut self, text: &str) {
let parsed_segments = parse_ansi_codes(text.as_bytes().to_vec());
self.received_data.extend(parsed_segments);
}
Expand Down Expand Up @@ -124,7 +124,7 @@ impl TelnetClient {
.stick_to_bottom(true);

scroll_area.show(ui, |ui| {
for (row_index, line) in self.received_data.iter().enumerate() {
for (_row_index, line) in self.received_data.iter().enumerate() {
let mut job = egui::text::LayoutJob::default();
for (text, color) in line {
job.append(
Expand Down

0 comments on commit 64ca30c

Please sign in to comment.