Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ae27b06

Browse files
committedAug 16, 2017
Auto merge of #43710 - zackmdavis:field_init_shorthand_power_slam, r=Mark-Simulacrum
use field init shorthand EVERYWHERE Like #43008 (f668999), but [(lacking reasons to be more timid)](rust-lang/rust#43008 (comment)) _much more aggressive_. r? @Mark-Simulacrum
2 parents a6d40f0 + a53313c commit ae27b06

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎lib.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -781,10 +781,10 @@ mod tests {
781781

782782
fn edge(from: usize, to: usize, label: &'static str, style: Style) -> Edge {
783783
Edge {
784-
from: from,
785-
to: to,
786-
label: label,
787-
style: style,
784+
from,
785+
to,
786+
label,
787+
style,
788788
}
789789
}
790790

@@ -848,9 +848,9 @@ mod tests {
848848
-> LabelledGraph {
849849
let count = node_labels.len();
850850
LabelledGraph {
851-
name: name,
851+
name,
852852
node_labels: node_labels.to_opt_strs(),
853-
edges: edges,
853+
edges,
854854
node_styles: match node_styles {
855855
Some(nodes) => nodes,
856856
None => vec![Style::None; count],

0 commit comments

Comments
 (0)
Please sign in to comment.