Use Self instead of repeating the type name.
This commit is contained in:
@@ -33,7 +33,7 @@ impl SourceLoc {
|
||||
}
|
||||
|
||||
impl Default for SourceLoc {
|
||||
fn default() -> SourceLoc {
|
||||
fn default() -> Self {
|
||||
SourceLoc(!0)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user