proper library setup
This commit is contained in:
parent
5d30ca51ed
commit
f630d138cb
2 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
crate-type = ["staticlib"]
|
||||
name = "crisp"
|
||||
path = "src/lib.rs"
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -11,7 +11,7 @@ pub mod reader;
|
|||
pub mod types;
|
||||
use types::*;
|
||||
|
||||
pub fn main() -> Result<()> {
|
||||
fn main() -> Result<()> {
|
||||
let mut rl = Editor::<(), rustyline::history::DefaultHistory>::new().unwrap();
|
||||
if rl.load_history(".mal-history").is_err() {
|
||||
eprintln!("No previous history.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue