xtask: Clean up

This commit is contained in:
Jonas Platte 2021-04-13 18:14:39 +02:00
parent d6ff0e8e28
commit 48c71dbe4d
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 2 additions and 6 deletions

View File

@ -11,10 +11,6 @@ macro_rules! run_in {
}};
}
//macro_rules! rustup_cmd {
//
//}
/// Task to run CI tests.
pub struct CiTask {
/// Which version of Rust to test against.

View File

@ -184,7 +184,7 @@ struct LocalCrate {
impl LocalCrate {
/// 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 version = Self::version(&path)?;
@ -238,7 +238,7 @@ impl LocalCrate {
if ask_yes_no("This version is already published. Skip this step and continue?")? {
Ok(())
} else {
Err("Release interrupted by user.")?
Err("Release interrupted by user.".into())
}
} else {
Ok(cmd!("cargo publish").run()?)