Skip to content
Snippets Groups Projects
Commit f4d26102 authored by y.zobus's avatar y.zobus
Browse files

fixed is_detector and is_dummy tests

parent aff44f59
No related branches found
No related tags found
No related merge requests found
Pipeline #7433 passed
......@@ -87,7 +87,7 @@ impl OpticNode {
let file_name = self.name.to_owned() + ".svg";
self.node.export_data(&file_name);
}
pub fn node(&self) -> &(dyn OpticComponent + 'static) {
pub fn node(&self) -> &Box<dyn OpticComponent> {
&self.node
}
pub fn is_detector(&self) -> bool {
......@@ -95,8 +95,6 @@ impl OpticNode {
}
}
impl Optical for Box<(dyn OpticComponent + 'static)>{}
impl Dottable for Box<(dyn OpticComponent + 'static)>{}
impl Debug for OpticNode {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment