Skip to content

Commit f4e0258

Browse files
authored
style: fix 2 clippy lint unless_vec & unused_io_amount (#751)
1 parent d50360a commit f4e0258

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ impl ConfigFile {
477477

478478
let config_directory = config_directory();
479479

480-
let possible_config_paths = vec![
480+
let possible_config_paths = [
481481
config_directory.join("topgrade.toml"),
482482
config_directory.join("topgrade/topgrade.toml"),
483483
];

src/steps/vim.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ fn upgrade(command: &mut Executor, ctx: &ExecutionContext) -> Result<()> {
5757
let status = output.status;
5858

5959
if !status.success() || ctx.config().verbose() {
60-
io::stdout().write(&output.stdout).ok();
61-
io::stderr().write(&output.stderr).ok();
60+
io::stdout().write_all(&output.stdout).ok();
61+
io::stderr().write_all(&output.stderr).ok();
6262
}
6363

6464
if !status.success() {

0 commit comments

Comments
 (0)