Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Dahan committed Sep 12, 2019
1 parent 19163dc commit e6f7a86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
//! * downloads the code from those repos
//! * and generates an init.zsh to setup paths and load zsh scripts for your zshrc
//!
use dirs::cache_dir;
use std::env;
use std::io::{self, Read, Result};
use std::path::PathBuf;
use dirs::cache_dir;

pub mod identifier;
pub mod plugin;
Expand Down
6 changes: 3 additions & 3 deletions src/plugins.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::io::Error;
use std::path::PathBuf;
use std::fmt;
use std::fs::create_dir_all;
use std::io::Error;
use std::path::PathBuf;

use git2_credentials::CredentialHandler;

Expand Down Expand Up @@ -50,7 +50,7 @@ impl Plugins {
}

pub fn new(cache: &PathBuf) -> Plugins {
if ! cache.exists() {
if !cache.exists() {
create_dir_all(&cache).expect("failed to create the cache directory");
}
Plugins {
Expand Down

0 comments on commit e6f7a86

Please sign in to comment.