Use the Self keyword where applicable.
https://github.com/rust-lang-nursery/rust-clippy/wiki#use_self
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user