Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use Self instead of struct name
  • Loading branch information
ShaharNaveh committed Jul 2, 2025
commit 319065e4f0f0ba91a194b0e19df06ce32d71c235
6 changes: 3 additions & 3 deletions vm/src/readline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ mod basic_readline {

impl<H: Helper> Readline<H> {
pub fn new(helper: H) -> Self {
Readline { helper }
Self { helper }
}

pub fn load_history(&mut self, _path: &Path) -> OtherResult<()> {
Expand Down Expand Up @@ -86,7 +86,7 @@ mod rustyline_readline {
)
.expect("failed to initialize line editor");
repl.set_helper(Some(helper));
Readline { repl }
Self { repl }
}

pub fn load_history(&mut self, path: &Path) -> OtherResult<()> {
Expand Down Expand Up @@ -136,7 +136,7 @@ pub struct Readline<H: Helper>(readline_inner::Readline<H>);

impl<H: Helper> Readline<H> {
pub fn new(helper: H) -> Self {
Readline(readline_inner::Readline::new(helper))
Self(readline_inner::Readline::new(helper))
}

pub fn load_history(&mut self, path: &Path) -> OtherResult<()> {
Expand Down