Skip to content

Commit 209a624

Browse files
committed
Added #[derive(Default)] in some structs
1 parent 4b0747b commit 209a624

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/internal_scc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ struct _Edge {
3535
/// Reference:
3636
/// R. Tarjan,
3737
/// Depth-First Search and Linear Graph Algorithms
38+
#[derive(Default)]
3839
pub struct SccGraph {
3940
n: usize,
4041
edges: Vec<(usize, _Edge)>,

src/twosat.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::internal_scc;
22

3+
#[derive(Default)]
34
pub struct TwoSat {
45
n: usize,
56
scc: internal_scc::SccGraph,

0 commit comments

Comments
 (0)