Skip to content

Commit

Permalink
Ran fmt and fix for warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Jan 24, 2021
1 parent 5dfe5dc commit ff7cf3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

use std::{error, env::current_dir, fmt, fs::symlink_metadata, path::Path};
use std::{env::current_dir, error, fmt, path::Path};

#[cfg(test)]
mod tests;
Expand Down Expand Up @@ -171,8 +170,8 @@ where
.map(|x| {
let target_ref = x.as_ref();
let target = if target_ref.is_relative() {
let curr_dir = current_dir().map_err(|_| {
Error::CouldNotAccess { target: "[Current working directory]".into() }
let curr_dir = current_dir().map_err(|_| Error::CouldNotAccess {
target: "[Current working directory]".into(),
})?;
curr_dir.join(target_ref)
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ fn test_delete_all() {
mod unix {
#[allow(deprecated)]
use crate::{delete, remove};
use std::fs::{create_dir, remove_dir_all, remove_file, File};
use std::os::unix::fs::symlink;
use std::fs::{File, create_dir, remove_file, remove_dir_all};

use std::path::Path;

Expand Down

0 comments on commit ff7cf3b

Please sign in to comment.