diff --git a/codes/rust/include/vertex.rs b/codes/rust/include/vertex.rs index 5aa3a6b5e..c4e941e6c 100644 --- a/codes/rust/include/vertex.rs +++ b/codes/rust/include/vertex.rs @@ -7,7 +7,7 @@ /* 顶点类型 */ #[derive(Copy, Clone, Hash, PartialEq, Eq)] pub struct Vertex { - pub val: i32 + pub val: i32, } /* 输入值列表 vals ,返回顶点列表 vets */ @@ -18,4 +18,4 @@ pub fn vals_to_vets(vals: Vec) -> Vec { /* 输入顶点列表 vets ,返回值列表 vals */ pub fn vets_to_vals(vets: Vec) -> Vec { vets.into_iter().map(|vet| vet.val).collect() -} \ No newline at end of file +}