We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b13f703 commit 4de38a9Copy full SHA for 4de38a9
1 file changed
src/branch.rs
@@ -226,10 +226,9 @@ mod default_branch_tests {
226
std::fs::create_dir(&data_dir).unwrap();
227
std::fs::write(data_dir.join(crate::config::DB_FILENAME), b"graph").unwrap();
228
229
- let error = match prepare_branch_tracking_in_layout(&project_root, "trunk", &data_dir).await
230
- {
231
- Ok(_) => panic!("detached legacy store must not invent a default branch"),
232
- Err(error) => error,
+ let Err(error) = prepare_branch_tracking_in_layout(&project_root, "trunk", &data_dir).await
+ else {
+ panic!("detached legacy store must not invent a default branch")
233
};
234
235
assert!(error.to_string().contains("default branch is unknown"));
0 commit comments