1
0
mirror of https://github.com/jht5945/buildj.git synced 2025-12-29 18:30:05 +08:00

style: code style

This commit is contained in:
2020-08-02 14:39:29 +08:00
parent ffb253e239
commit 220ae2e8a9
7 changed files with 14 additions and 30 deletions

View File

@@ -1,13 +1,8 @@
use std::{ fs, path::Path, };
use std::{ fs, path::Path };
use rust_util::{ XResult, new_box_ioerror };
use rust_util::{
iff,
XResult,
new_box_ioerror,
};
use super::http::get_url_content;
use super::misc::VERBOSE;
use crate::http::get_url_content;
use crate::misc::VERBOSE;
pub const BUILD_JSON: &str = "build.json";

View File

@@ -1,11 +1,7 @@
use std::fs::File;
use rust_util::{ XResult, util_io::copy_io };
use rust_util::{
XResult,
util_io::copy_io,
};
use super::misc::VERBOSE;
use crate::misc::VERBOSE;
pub fn download_url(url: &str, dest: &mut File) -> XResult<()> {
if *VERBOSE {

View File

@@ -7,11 +7,7 @@ use std::{
process::Command,
};
use rust_util::util_os::*;
use super::{
local_util,
tool,
misc::*,
};
use crate::{ local_util, tool, misc::* };
const PATH: &str = "PATH";
const JAVA_HOME: &str = "JAVA_HOME";

View File

@@ -6,13 +6,11 @@ use std::{
process::Command,
time::SystemTime,
};
use rust_util::{
XResult,
new_box_ioerror,
util_io::*,
};
use crypto::{
digest::Digest,
md5::Md5,

View File

@@ -1,4 +1,3 @@
use std::env;
use rust_util::util_env::*;

View File

@@ -7,8 +7,8 @@ use rust_util::{
new_box_ioerror,
util_os::is_macos_or_linux,
};
use super::{
http::{ download_url, get_url_content, },
use crate::{
http::{ download_url, get_url_content },
local_util::{ self, * },
misc::*,
};