cleanup: `cargo fix`, `cargo fmt` to reduce number of error messages

This commit is contained in:
Mikolaj Wielgus 2024-07-15 13:14:17 +02:00
parent 44d9d3dd83
commit ace5709e5d
10 changed files with 13 additions and 47 deletions

View File

@ -24,7 +24,7 @@ Change your working directory to your clone of Topola's repository:
### Command-line application
Run the following to build and install Topola's command-line
Run the following command to build and install Topola's command-line
application:
cargo install --locked --path . --features cli

View File

@ -15,7 +15,6 @@ use crate::{
Layout, NodeIndex,
},
math::Circle,
router::{navmesh::Navmesh, route::Route, Router, RouterError},
};
#[derive(Debug)]

View File

@ -19,10 +19,7 @@ use crate::{
wraparoundable::WraparoundableIndex,
Drawing, Infringement, LayoutException,
},
geometry::{
compound::ManageCompounds, primitive::AccessPrimitiveShape, shape::MeasureLength,
GenericNode,
},
geometry::{compound::ManageCompounds, shape::MeasureLength, GenericNode},
graph::{GenericIndex, GetPetgraphIndex},
layout::{
poly::{Poly, PolyWeight},

View File

@ -1,5 +1,5 @@
use contracts::debug_ensures;
use geo::{EuclideanLength, Point};
use geo::Point;
use thiserror::Error;
use crate::{

View File

@ -7,7 +7,7 @@ use petgraph::{
graph::UnGraph,
stable_graph::NodeIndex,
visit::{
self, Data, EdgeRef, GraphBase, IntoEdgeReferences, IntoEdges, IntoNeighbors,
Data, EdgeRef, GraphBase, IntoEdgeReferences, IntoEdges, IntoNeighbors,
IntoNodeIdentifiers, NodeIndexable,
},
};

View File

@ -1,32 +1,9 @@
use geo::EuclideanDistance;
use petgraph::{
data::DataMap,
graph::{EdgeReference, NodeIndex, UnGraph},
visit::EdgeRef,
};
use thiserror::Error;
use crate::{
drawing::{
band::BandFirstSegIndex,
dot::{DotIndex, FixedDotIndex},
graph::{MakePrimitive, PrimitiveIndex},
primitive::MakePrimitiveShape,
rules::AccessRules,
},
geometry::{
primitive::{AccessPrimitiveShape, PrimitiveShape},
shape::AccessShape,
},
graph::GetPetgraphIndex,
layout::Layout,
drawing::{dot::FixedDotIndex, graph::PrimitiveIndex, rules::AccessRules},
geometry::primitive::PrimitiveShape,
router::{
astar::{astar, Astar, AstarError, AstarStatus, AstarStrategy, PathTracker},
draw::DrawException,
navmesh::{
BinavvertexNodeIndex, Navmesh, NavmeshEdgeReference, NavmeshError, NavvertexIndex,
NavvertexWeight,
},
astar::{Astar, AstarStatus},
navmesh::Navmesh,
trace::Trace,
tracer::Tracer,
Router, RouterAstarStrategy, RouterError, RouterStatus,

View File

@ -7,7 +7,7 @@ use crate::{
band::BandFirstSegIndex,
dot::{DotIndex, FixedDotIndex},
graph::{MakePrimitive, PrimitiveIndex},
head::{GetFace, Head},
head::GetFace,
primitive::MakePrimitiveShape,
rules::AccessRules,
Collision, Infringement, LayoutException,

View File

@ -1,19 +1,12 @@
use contracts::{debug_ensures, debug_requires};
use petgraph::{
data::DataMap,
graph::{NodeIndex, UnGraph},
};
use thiserror::Error;
use crate::{
drawing::{
band::BandFirstSegIndex, bend::LooseBendIndex, dot::FixedDotIndex, graph::PrimitiveIndex,
rules::AccessRules,
},
drawing::{band::BandFirstSegIndex, dot::FixedDotIndex, rules::AccessRules},
layout::Layout,
router::{
draw::{Draw, DrawException},
navmesh::{BinavvertexNodeIndex, Navmesh, NavvertexIndex, NavvertexWeight},
navmesh::{Navmesh, NavvertexIndex},
trace::Trace,
},
};

View File

@ -19,7 +19,7 @@ use crate::{
mesadata::SpecctraMesadata,
read::{self, ListTokenizer},
structure::{self, DsnFile, Layer, Pcb, Shape},
write::{self, ListWriter},
write::ListWriter,
},
};

View File

@ -35,7 +35,7 @@ fn test_unrouted_lm317_breakout() {
#[test]
fn test_signal_integrity_test() {
let mut invoker = common::load_design_and_assert(
let invoker = common::load_design_and_assert(
"tests/multilayer/data/signal_integrity_test/signal_integrity_test.dsn",
);