Skip to content
Snippets Groups Projects
Commit 5deb892c authored by Udo Eisenbarth's avatar Udo Eisenbarth :speech_balloon:
Browse files

Fix some warning in structure test examples.

parent cac398f6
No related branches found
No related tags found
No related merge requests found
use petgraph::prelude::{DiGraph, EdgeIndex, NodeIndex};
struct OpticDummy; struct OpticDummy;
struct OpticIdealLens { struct OpticIdealLens {
......
use petgraph::prelude::{DiGraph, EdgeIndex, NodeIndex}; use petgraph::prelude::DiGraph;
trait Optical { trait Optical {
fn analyze(&self) { fn analyze(&self) {
println!("generic analyze"); println!("generic analyze");
} }
} }
struct OpticDummy;
struct OpticIdealLens { struct OpticIdealLens {
focal_length: f64, focal_length: f64,
...@@ -57,5 +56,5 @@ fn main() { ...@@ -57,5 +56,5 @@ fn main() {
let node=OpticNode::new("Test2",NodeType::SimpleElement(1.23)); let node=OpticNode::new("Test2",NodeType::SimpleElement(1.23));
node.analyze(); node.analyze();
let p:DiGraph<OpticNode,()> = DiGraph::new(); let _p:DiGraph<OpticNode,()> = DiGraph::new();
} }
\ No newline at end of file
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