sdl2-demo: fix compile error

This commit is contained in:
Mikolaj Wielgus 2024-05-25 21:23:24 +02:00
parent 09f1e14e45
commit 93b628ae02
1 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,7 @@ macro_rules! dbg_dot {
use geo::point; use geo::point;
use painter::Painter; use painter::Painter;
use petgraph::visit::{EdgeRef, IntoEdgeReferences}; use petgraph::visit::{EdgeRef, IntoEdgeReferences};
use topola::autorouter::selection::Selection;
use topola::autorouter::Autorouter; use topola::autorouter::Autorouter;
use topola::drawing::dot::FixedDotWeight; use topola::drawing::dot::FixedDotWeight;
use topola::drawing::graph::{MakePrimitive, PrimitiveIndex}; use topola::drawing::graph::{MakePrimitive, PrimitiveIndex};
@ -23,7 +24,6 @@ use topola::dsn::design::DsnDesign;
use topola::dsn::rules::DsnRules; use topola::dsn::rules::DsnRules;
use topola::geometry::primitive::{PrimitiveShape, PrimitiveShapeTrait}; use topola::geometry::primitive::{PrimitiveShape, PrimitiveShapeTrait};
use topola::geometry::shape::ShapeTrait; use topola::geometry::shape::ShapeTrait;
use topola::layout::connectivity::BandIndex;
use topola::layout::zone::MakePolyShape; use topola::layout::zone::MakePolyShape;
use topola::layout::Layout; use topola::layout::Layout;
use topola::router::draw::DrawException; use topola::router::draw::DrawException;
@ -275,7 +275,7 @@ fn main() -> Result<(), anyhow::Error> {
); );
let mut autorouter = Autorouter::new(layout.clone()).unwrap(); let mut autorouter = Autorouter::new(layout.clone()).unwrap();
if let Some(mut autoroute) = autorouter.autoroute_walk() { if let Some(mut autoroute) = autorouter.autoroute_walk(&Selection::new()) {
while autoroute.next( while autoroute.next(
&mut autorouter, &mut autorouter,
&mut DebugRouterObserver::new( &mut DebugRouterObserver::new(