Use Self instead of repeating the type name.

This commit is contained in:
Dan Gohman
2017-11-08 10:40:47 -08:00
parent b7f979a8be
commit 3ab4349c1b
41 changed files with 105 additions and 105 deletions

View File

@@ -65,8 +65,8 @@ struct LiveValueVec {
}
impl LiveValueVec {
fn new() -> LiveValueVec {
LiveValueVec {
fn new() -> Self {
Self {
values: Vec::new(),
live_prefix: None,
}
@@ -124,8 +124,8 @@ impl LiveValueVec {
impl LiveValueTracker {
/// Create a new blank tracker.
pub fn new() -> LiveValueTracker {
LiveValueTracker {
pub fn new() -> Self {
Self {
live: LiveValueVec::new(),
idom_sets: HashMap::new(),
idom_pool: ListPool::new(),