Skip to content

Commit

Permalink
chore: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
caelansar committed Dec 4, 2023
1 parent a81e83b commit 40decff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() {
println!("version: {}", VERSION);
println!("commit: {}", COMMIT);
println!("build date: {}", DATE);
return repl::repl(io::stdin().lock(), io::stdout().lock()).unwrap();
return repl::repl(io::stdout().lock()).unwrap();
}

if args.len() != 3 {
Expand Down
4 changes: 2 additions & 2 deletions src/repl/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use rustyline::validate::{self, MatchingBracketValidator, Validator};
use rustyline::{Cmd, CompletionType, Config, Context, EditMode, Editor, Helper, KeyPress};

#[cfg(feature = "vm")]
pub fn repl<R: io::BufRead, W: io::Write>(_reader: R, mut writer: W) -> io::Result<()> {
pub fn repl<W: io::Write>(mut writer: W) -> io::Result<()> {
use crate::{compiler, vm};

let mut constants = vec![];
Expand Down Expand Up @@ -99,7 +99,7 @@ pub fn repl<R: io::BufRead, W: io::Write>(_reader: R, mut writer: W) -> io::Resu
}

#[cfg(not(feature = "vm"))]
pub fn repl<R: io::BufRead, W: io::Write>(_reader: R, mut writer: W) -> io::Result<()> {
pub fn repl<W: io::Write>(mut writer: W) -> io::Result<()> {
use std::{cell::RefCell, rc::Rc};

use crate::eval::{env::Environment, object, Evaluator};
Expand Down

0 comments on commit 40decff

Please sign in to comment.