Apply cargo and clippy fix
This commit is contained in:
parent
4d5e6f19fc
commit
603864e7f6
@ -3,7 +3,7 @@ use relm4::prelude::*;
|
|||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ui::{mcdu::McduOutput, sheet_model::SheetModelType},
|
ui::{mcdu::McduOutput, sheet_model::SheetModelType},
|
||||||
FileValidationResult, SheetsAndOrphans,
|
SheetsAndOrphans,
|
||||||
};
|
};
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use std::path::{Path, PathBuf};
|
use std::path::Path;
|
||||||
|
|
||||||
use gtk::prelude::*;
|
use gtk::prelude::*;
|
||||||
use relm4::prelude::*;
|
use relm4::prelude::*;
|
||||||
@ -16,8 +16,8 @@ pub enum SheetModelType {
|
|||||||
impl SheetModelType {
|
impl SheetModelType {
|
||||||
pub fn get_path(&self) -> &Path {
|
pub fn get_path(&self) -> &Path {
|
||||||
match self {
|
match self {
|
||||||
SheetModelType::Sheet { sheet } => &sheet.path.as_path(),
|
SheetModelType::Sheet { sheet } => sheet.path.as_path(),
|
||||||
SheetModelType::Orphan { orphan } => &orphan.path.as_path(),
|
SheetModelType::Orphan { orphan } => orphan.path.as_path(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user