Use the Self keyword where applicable.

https://github.com/rust-lang-nursery/rust-clippy/wiki#use_self
This commit is contained in:
Dan Gohman
2017-08-31 12:12:04 -07:00
parent 99b361567a
commit a7d629c368
7 changed files with 14 additions and 14 deletions

View File

@@ -51,8 +51,8 @@ where
{
/// Creates a ILBuilder structure. The structure is automatically cleared each time it is
/// passed to a [`FunctionBuilder`](struct.FunctionBuilder.html) for creation.
pub fn new() -> ILBuilder<Variable> {
ILBuilder {
pub fn new() -> Self {
Self {
ssa: SSABuilder::new(),
ebbs: EntityMap::new(),
types: EntityMap::new(),