We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a6d40f0 + a53313c commit ae27b06Copy full SHA for ae27b06
lib.rs
@@ -781,10 +781,10 @@ mod tests {
781
782
fn edge(from: usize, to: usize, label: &'static str, style: Style) -> Edge {
783
Edge {
784
- from: from,
785
- to: to,
786
- label: label,
787
- style: style,
+ from,
+ to,
+ label,
+ style,
788
}
789
790
@@ -848,9 +848,9 @@ mod tests {
848
-> LabelledGraph {
849
let count = node_labels.len();
850
LabelledGraph {
851
- name: name,
+ name,
852
node_labels: node_labels.to_opt_strs(),
853
- edges: edges,
+ edges,
854
node_styles: match node_styles {
855
Some(nodes) => nodes,
856
None => vec![Style::None; count],
0 commit comments