Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alok authored and spacekookie committed Mar 7, 2019
1 parent b4bca86 commit 1e79982
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions src/bin/void/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ fn main() {
let path: OsString = matches
.value_of("PATH")
.map(OsString::from)
.or_else(|| dirs::home_dir().and_then(|mut h| {
h.push(".void.db");
Some(h.into_os_string())
}))
.or_else(|| {
dirs::home_dir().and_then(|mut h| {
h.push(".void.db");
Some(h.into_os_string())
})
})
.unwrap();

// load from file if present
Expand Down
2 changes: 1 addition & 1 deletion src/logging.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ impl log::Log for ScreenLogger {
"{} {} {}:{}] {}\n",
time::get_time().sec,
record.level(),
record.location().file().split("/").last().unwrap(),
record.location().file().split('/').last().unwrap(),
record.location().line(),
record.args()
);
Expand Down

0 comments on commit 1e79982

Please sign in to comment.