diff --git a/src/cmd_gitcheck.rs b/src/cmd_gitcheck.rs index 3867956..94ba722 100644 --- a/src/cmd_gitcheck.rs +++ b/src/cmd_gitcheck.rs @@ -1,6 +1,6 @@ use std::fs; use clap::{ArgMatches, SubCommand, App, Arg}; -use rust_util::{util_git, util_os}; +use rust_util::{util_git, util_file}; use serde::{Serialize, Deserialize}; use crate::cmd::{Command, CommandResult}; @@ -49,7 +49,7 @@ impl Command for CommandImpl { let allow_master = sub_arg_matches.is_present("allow-master"); let git_check_json = match dir { None => GIT_CHECK_JSON.to_string(), - Some(dir) => util_os::join_path(dir.to_string(), GIT_CHECK_JSON), + Some(dir) => util_file::join_path(dir, GIT_CHECK_JSON), }; let git_check_config = match fs::read_to_string(&git_check_json) { Ok(s) => serde_json::from_str::(&s).expect(&format!("Parse file failed: {}", GIT_CHECK_JSON)),