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:
@@ -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";
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
|
||||
use std::env;
|
||||
use rust_util::util_env::*;
|
||||
|
||||
|
||||
@@ -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::*,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user