Skip to content

Commit

Permalink
Use FeProcessingMode
Browse files Browse the repository at this point in the history
  • Loading branch information
SutekhVRC committed Dec 3, 2023
1 parent 31e8949 commit be0f075
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src-tauri/bindings/FePenetrationSystem.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { FeProcessingMode } from "./FeProcessingMode";
import type { PenetrationSystemType } from "./PenetrationSystemType";
import type { ProcessingMode } from "./ProcessingMode";

export interface FePenetrationSystem { pen_system_type: PenetrationSystemType, pen_system_processing_mode: ProcessingMode, }
export interface FePenetrationSystem { pen_system_type: PenetrationSystemType, pen_system_processing_mode: FeProcessingMode, }
4 changes: 2 additions & 2 deletions src-tauri/src/frontend/frontend_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub struct FeToyParameter {
#[ts(export)]
pub struct FePenetrationSystem {
pub pen_system_type: PenetrationSystemType,
pub pen_system_processing_mode: ProcessingMode,
pub pen_system_processing_mode: FeProcessingMode,
}

impl ToBackend<(PenetrationSystemType, ProcessingMode)> for FePenetrationSystem {
Expand All @@ -167,7 +167,7 @@ impl ToBackend<(PenetrationSystemType, ProcessingMode)> for FePenetrationSystem
fn to_backend(&self) -> Self::OutputType {
(
self.pen_system_type.clone(),
self.pen_system_processing_mode.clone(),
self.pen_system_processing_mode.to_backend(),
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/toy_handling/input_processor/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ impl ToFrontend<FePenetrationSystem> for PenetrationSystem {
fn to_frontend(&self) -> Self::OutputType {
FePenetrationSystem {
pen_system_type: self.pen_system_type.clone(),
pen_system_processing_mode: self.pen_system_processing_mode.clone(),
pen_system_processing_mode: self.pen_system_processing_mode.to_frontend(),
}
}
}

0 comments on commit be0f075

Please sign in to comment.