Use Self instead of repeating the type name.

This commit is contained in:
Dan Gohman
2017-09-21 13:28:40 -07:00
parent e5e4b59683
commit 16eb689dd1

View File

@@ -64,8 +64,8 @@ pub struct SideEffects {
}
impl SideEffects {
fn new() -> SideEffects {
SideEffects {
fn new() -> Self {
Self {
split_ebbs_created: Vec::new(),
instructions_added_to_ebbs: Vec::new(),
}