Skip to content

Commit a380483

Browse files
committed
fix: fn naming mistake
1 parent c664c66 commit a380483

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coffee_github/src/repository.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ impl Repository for Github {
310310
}
311311
}
312312

313-
async fn switch_branch(&self, branch_name: &str) -> Result<(), CoffeeError> {
313+
async fn branch(&self, branch_name: &str) -> Result<(), CoffeeError> {
314314
let repo = git2::Repository::open(&self.url.path_string)
315315
.map_err(|err| error!("{}", err.message()))?;
316316
let mut remote = repo

coffee_lib/src/repository.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ pub trait Repository: Any {
3131
async fn recover(&mut self) -> Result<(), CoffeeError>;
3232

3333
/// switch to the specified branch.
34-
async fn switch_branch(&self, branch_name: &str) -> Result<(), CoffeeError>;
34+
async fn branch(&self, branch_name: &str) -> Result<(), CoffeeError>;
3535

3636
/// return the name of the repository.
3737
fn name(&self) -> String;

0 commit comments

Comments
 (0)