diff --git a/src/cargo.rs b/src/cargo.rs
index 9c976afcb..654ed580a 100644
--- a/src/cargo.rs
+++ b/src/cargo.rs
@@ -1,6 +1,6 @@
+use serde::Deserialize;
use std::path::{Path, PathBuf};
use std::process::{Command, ExitStatus};
-use std::{env, fs};
use crate::errors::*;
use crate::extensions::CommandExt;
@@ -54,7 +54,7 @@ impl<'a> From<&'a str> for Subcommand {
#[derive(Debug)]
pub struct Root {
- path: PathBuf,
+ pub path: PathBuf,
}
impl Root {
@@ -64,26 +64,28 @@ impl Root {
}
/// Cargo project root
-pub fn root() -> Result