xtask: Clean up
This commit is contained in:
parent
d6ff0e8e28
commit
48c71dbe4d
@ -11,10 +11,6 @@ macro_rules! run_in {
|
|||||||
}};
|
}};
|
||||||
}
|
}
|
||||||
|
|
||||||
//macro_rules! rustup_cmd {
|
|
||||||
//
|
|
||||||
//}
|
|
||||||
|
|
||||||
/// Task to run CI tests.
|
/// Task to run CI tests.
|
||||||
pub struct CiTask {
|
pub struct CiTask {
|
||||||
/// Which version of Rust to test against.
|
/// Which version of Rust to test against.
|
||||||
|
@ -184,7 +184,7 @@ struct LocalCrate {
|
|||||||
|
|
||||||
impl LocalCrate {
|
impl LocalCrate {
|
||||||
/// Creates a new `Crate` with the given name and project root.
|
/// Creates a new `Crate` with the given name and project root.
|
||||||
pub fn new(name: String, project_root: &PathBuf) -> Result<Self> {
|
pub fn new(name: String, project_root: &Path) -> Result<Self> {
|
||||||
let path = project_root.join(&name);
|
let path = project_root.join(&name);
|
||||||
|
|
||||||
let version = Self::version(&path)?;
|
let version = Self::version(&path)?;
|
||||||
@ -238,7 +238,7 @@ impl LocalCrate {
|
|||||||
if ask_yes_no("This version is already published. Skip this step and continue?")? {
|
if ask_yes_no("This version is already published. Skip this step and continue?")? {
|
||||||
Ok(())
|
Ok(())
|
||||||
} else {
|
} else {
|
||||||
Err("Release interrupted by user.")?
|
Err("Release interrupted by user.".into())
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
Ok(cmd!("cargo publish").run()?)
|
Ok(cmd!("cargo publish").run()?)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user