Skip to content

Commit

Permalink
Fixing clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Nov 6, 2023
1 parent 69b9754 commit 869e441
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/ir/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub use crate::prelude::*;
use egui::ComboBox;

#[derive(Default)]
pub struct Literal;
pub struct Literal {}

impl Literal {
pub fn new() -> Self {
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/ir/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pub use crate::prelude::*;
use crate::gui::ui::{StringField, editor::{widget::{Widget, WidgetFor}, settings::Settings}};

#[derive(Default)]
pub struct Path;
pub struct Path {}

impl Path {
pub fn new() -> Self {
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/parsing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub struct Parsing {
impl Default for Parsing {
fn default() -> Self {
let parsers = vec![
Parser::new(Box::new(PythonParser::default()))
Parser::new(Box::<PythonParser>::default())
];
Self { parsers }
}
Expand Down

0 comments on commit 869e441

Please sign in to comment.