Some more clippy fixes, warnings are noisy
This commit is contained in:
@@ -2,10 +2,9 @@ use crate::arch::x86_64::drivers::keyboard::{KeyStroke, get_keystroke_async};
|
||||
use crate::resources::font::Font;
|
||||
use crate::serial_print;
|
||||
use crate::serial_println;
|
||||
use crate::std::application::frame::Frame;
|
||||
use crate::std::application::render::RenderError;
|
||||
use crate::std::application::window::Window;
|
||||
use crate::std::application::{Application, Error};
|
||||
use crate::std::application::{
|
||||
Application, Error, frame::Frame, render::RenderError, window::Window,
|
||||
};
|
||||
use crate::std::ascii::Writer;
|
||||
use crate::std::maths::geometry::Vec2;
|
||||
use alloc::string::{String, ToString};
|
||||
@@ -42,7 +41,8 @@ impl<'a> Editor {
|
||||
|
||||
fn render(&'a self) -> Result<Frame<'a>, RenderError> {
|
||||
let mut frame = Frame::new(&self.window);
|
||||
let writer = Writer::new(Font::default());
|
||||
let font = Font::default();
|
||||
let writer = Writer::new(&font);
|
||||
|
||||
let (width, height) = writer.font_size().into();
|
||||
|
||||
@@ -127,7 +127,8 @@ impl<'a> Editor {
|
||||
|
||||
fn get_char_idx(&self) -> usize {
|
||||
let frame = Frame::new(&self.window);
|
||||
let writer = Writer::new(Font::default());
|
||||
let font = Font::default();
|
||||
let writer = Writer::new(&font);
|
||||
let (width, _height) = writer.font_size().into();
|
||||
|
||||
let mut col = 0;
|
||||
|
||||
Reference in New Issue
Block a user