Use Self instead of repeating the type name.
This commit is contained in:
@@ -63,8 +63,8 @@ struct Context<'a> {
|
||||
|
||||
impl Spilling {
|
||||
/// Create a new spilling data structure.
|
||||
pub fn new() -> Spilling {
|
||||
Spilling {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
spills: Vec::new(),
|
||||
reg_uses: Vec::new(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user