Skip to content

Commit

Permalink
Address rustc 1.36 compilation regression
Browse files Browse the repository at this point in the history
  • Loading branch information
dubrowgn committed Jul 7, 2019
1 parent 519a2b6 commit d4b640a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ include = [
]

[dependencies]
tcalc-rustyline = "1.0.1"
dirs = "2.0.1"
tcalc-rustyline = "1.0.2"
#tcalc-rustyline = { path = "../rustyline" }

[features]
Expand Down
9 changes: 5 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
extern crate dirs;
extern crate tcalc_rustyline;

use tcalc_rustyline::error::ReadlineError;
Expand Down Expand Up @@ -62,10 +63,10 @@ fn repl() {
let mut runner = Runner::new();
let mut rl = Editor::<()>::new();

let history_path = match env::home_dir() {
Some(mut home_dir) => {
home_dir.push(".tcalc_history");
Some(home_dir)
let history_path = match dirs::cache_dir() {
Some(mut hist_dir) => {
hist_dir.push("tcalc_history");
Some(hist_dir)
},
_ => None
};
Expand Down

0 comments on commit d4b640a

Please sign in to comment.