summaryrefslogtreecommitdiff
path: root/src/repl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repl.rs')
-rw-r--r--src/repl.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repl.rs b/src/repl.rs
index af1679194..6dcaf9cf7 100644
--- a/src/repl.rs
+++ b/src/repl.rs
@@ -61,8 +61,8 @@ pub struct Repl {
}
impl Repl {
- pub fn new(history_file: PathBuf) -> Repl {
- let mut repl = Repl {
+ pub fn new(history_file: PathBuf) -> Self {
+ let mut repl = Self {
editor: Editor::<()>::new(),
history_file,
};