Skip to content

Commit

Permalink
Applied Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cowuake committed Nov 16, 2023
1 parent c0aa3dd commit 7869917
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions schemus/src/core/builtins.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
use std::{cell::{RefCell, RefMut}, rc::Rc, time::Instant};
use std::{
cell::{RefCell, RefMut},
rc::Rc,
time::Instant,
};

use super::{environment::Environment, evaluator::eval, s_expression::*};

Expand Down Expand Up @@ -305,7 +309,7 @@ fn r_display(args: ProcedureArgs, env: ProcedureEnv) -> ProcedureOutput {
match eval(&args[0], env.clone()) {
Ok(val) => match val {
SExpr::String(string) => Ok(SExpr::Symbol(string.borrow().to_string())), // Avoids double quotes
expr => Ok(SExpr::Symbol(format!("{}", expr)))
expr => Ok(SExpr::Symbol(format!("{}", expr))),
},
Err(e) => Err(e),
}
Expand Down

0 comments on commit 7869917

Please sign in to comment.