mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-30 16:19:35 +00:00
clippy: run cargo clippy --fix --workspace
with recent nightly
This commit is contained in:
parent
1d918dff08
commit
2571169251
3 changed files with 3 additions and 3 deletions
|
@ -93,7 +93,7 @@ pub(crate) fn cmd_resolve(
|
|||
);
|
||||
};
|
||||
|
||||
let (repo_path, _) = conflicts.get(0).unwrap();
|
||||
let (repo_path, _) = conflicts.first().unwrap();
|
||||
workspace_command.check_rewritable([&commit])?;
|
||||
let mut tx = workspace_command.start_transaction(&format!(
|
||||
"Resolve conflicts in commit {}",
|
||||
|
|
|
@ -85,7 +85,7 @@ fn test_commit_with_default_description() {
|
|||
std::fs::write(workspace_path.join("file1"), "foo\n").unwrap();
|
||||
std::fs::write(workspace_path.join("file2"), "bar\n").unwrap();
|
||||
let edit_script = test_env.set_up_fake_editor();
|
||||
std::fs::write(&edit_script, ["dump editor"].join("\0")).unwrap();
|
||||
std::fs::write(edit_script, ["dump editor"].join("\0")).unwrap();
|
||||
test_env.jj_cmd_ok(&workspace_path, &["commit"]);
|
||||
|
||||
insta::assert_snapshot!(get_log_output(&test_env, &workspace_path), @r#"
|
||||
|
|
|
@ -259,7 +259,7 @@ fn test_describe_default_description() {
|
|||
std::fs::write(workspace_path.join("file1"), "foo\n").unwrap();
|
||||
std::fs::write(workspace_path.join("file2"), "bar\n").unwrap();
|
||||
let edit_script = test_env.set_up_fake_editor();
|
||||
std::fs::write(&edit_script, ["dump editor"].join("\0")).unwrap();
|
||||
std::fs::write(edit_script, ["dump editor"].join("\0")).unwrap();
|
||||
let (stdout, stderr) = test_env.jj_cmd_ok(&workspace_path, &["describe"]);
|
||||
insta::assert_snapshot!(stdout, @"");
|
||||
insta::assert_snapshot!(stderr, @r###"
|
||||
|
|
Loading…
Reference in a new issue