mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 13:51:31 +00:00
Simplify xtask
lib/bin/test separation isn't really needed.
This commit is contained in:
parent
c17f2bf2a2
commit
d9dcfd81c5
17 changed files with 167 additions and 180 deletions
|
@ -11,12 +11,12 @@ use xshell::{cmd, mkdir_p, pushd, pushenv, read_file, rm_rf};
|
|||
|
||||
type Unit = String;
|
||||
|
||||
pub struct MetricsCmd {
|
||||
pub dry_run: bool,
|
||||
pub(crate) struct MetricsCmd {
|
||||
pub(crate) dry_run: bool,
|
||||
}
|
||||
|
||||
impl MetricsCmd {
|
||||
pub fn run(self) -> Result<()> {
|
||||
pub(crate) fn run(self) -> Result<()> {
|
||||
let mut metrics = Metrics::new()?;
|
||||
if !self.dry_run {
|
||||
rm_rf("./target/release")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue