Apply cargo and clippy fix

This commit is contained in:
Julian Mutter 2024-02-07 19:23:22 +01:00
parent 4d5e6f19fc
commit 603864e7f6
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ use relm4::prelude::*;
use crate::{
ui::{mcdu::McduOutput, sheet_model::SheetModelType},
FileValidationResult, SheetsAndOrphans,
SheetsAndOrphans,
};
use super::{

View File

@ -1,4 +1,4 @@
use std::path::{Path, PathBuf};
use std::path::Path;
use gtk::prelude::*;
use relm4::prelude::*;
@ -16,8 +16,8 @@ pub enum SheetModelType {
impl SheetModelType {
pub fn get_path(&self) -> &Path {
match self {
SheetModelType::Sheet { sheet } => &sheet.path.as_path(),
SheetModelType::Orphan { orphan } => &orphan.path.as_path(),
SheetModelType::Sheet { sheet } => sheet.path.as_path(),
SheetModelType::Orphan { orphan } => orphan.path.as_path(),
}
}
}