Skip to content

Commit

Permalink
chore: rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Feb 17, 2023
1 parent b9d351d commit c2e7ab0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
3 changes: 1 addition & 2 deletions src/bin/cog/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,15 +331,14 @@ fn main() -> Result<()> {

IncrementCommand::AutoPackage(package.to_owned())
}
None => IncrementCommand::Auto
None => IncrementCommand::Auto,
},
None if major => IncrementCommand::Major,
None if minor => IncrementCommand::Minor,
None if patch => IncrementCommand::Patch,
_ => unreachable!(),
};


if is_monorepo {
match package {
Some(package_name) => {
Expand Down
11 changes: 5 additions & 6 deletions tests/lib_tests/bump.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use std::collections::HashMap;
use std::path::PathBuf;
use anyhow::Result;
use cmd_lib::run_cmd;
use cocogitto::settings::{MonoRepoPackage, Settings};
use cocogitto::{conventional::version::IncrementCommand, CocoGitto};
use sealed_test::prelude::*;
use speculoos::prelude::*;
use std::collections::HashMap;
use std::path::PathBuf;

use crate::helpers::*;

Expand Down Expand Up @@ -134,7 +134,7 @@ fn monorepo_bump_issue_262_ok() -> Result<()> {
None,
None,
None,
false
false,
)?;

cocogitto.create_package_version(
Expand All @@ -143,7 +143,7 @@ fn monorepo_bump_issue_262_ok() -> Result<()> {
None,
None,
None,
false
false,
)?;

run_cmd!(
Expand All @@ -158,7 +158,7 @@ fn monorepo_bump_issue_262_ok() -> Result<()> {
None,
None,
None,
false
false,
)?;

run_cmd!(git --no-pager log;)?;
Expand All @@ -172,7 +172,6 @@ fn monorepo_bump_issue_262_ok() -> Result<()> {
Ok(())
}


#[sealed_test]
fn monorepo_bump_manual_ok() -> Result<()> {
// Arrange
Expand Down

0 comments on commit c2e7ab0

Please sign in to comment.