Use Self instead of repeating the type name.
This commit is contained in:
@@ -30,8 +30,8 @@ pub struct FuncTranslator {
|
||||
|
||||
impl FuncTranslator {
|
||||
/// Create a new translator.
|
||||
pub fn new() -> FuncTranslator {
|
||||
FuncTranslator {
|
||||
pub fn new() -> Self {
|
||||
Self {
|
||||
il_builder: ILBuilder::new(),
|
||||
state: TranslationState::new(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user