Remove deprecated From<Vertex> for usize implementation

This commit is contained in:
2026-05-08 12:57:16 +02:00
parent 4e47573290
commit d3fcd690a5
-6
View File
@@ -4,12 +4,6 @@ use crate::traits::GraphTopology;
#[derive(Copy, Clone, PartialEq, Eq, Debug)] #[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct Vertex(usize); pub struct Vertex(usize);
impl From<Vertex> for usize {
fn from(v: Vertex) -> usize {
v.0
}
}
#[derive(Copy, Clone, PartialEq, Eq, Debug)] #[derive(Copy, Clone, PartialEq, Eq, Debug)]
pub struct Incidence(usize); pub struct Incidence(usize);