From 7433687d696384892fbc1439bebcde80ff16abf9 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 8 Dec 2025 16:39:11 +0100 Subject: [PATCH] 2025: fix cargo fmt Turns out rustfmt needs a --edition 2024 flag (which cargo fmt adds automatically), otherwise some imports change order. Of course my editor is configured to use rustfmt via apheleia, which does not support cargo fmt. Urgh. --- aoc2025/benches/aoc2025_bench.rs | 2 +- aoc2025/src/day01.rs | 2 +- aoc2025/src/day02.rs | 2 +- aoc2025/src/day04.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/aoc2025/benches/aoc2025_bench.rs b/aoc2025/benches/aoc2025_bench.rs index 8dc0547..ee66bd3 100644 --- a/aoc2025/benches/aoc2025_bench.rs +++ b/aoc2025/benches/aoc2025_bench.rs @@ -1,4 +1,4 @@ -use criterion::{criterion_group, criterion_main, Criterion}; +use criterion::{Criterion, criterion_group, criterion_main}; use aoc2025::day01; use aoc2025::day02; diff --git a/aoc2025/src/day01.rs b/aoc2025/src/day01.rs index 9ee3904..43766af 100644 --- a/aoc2025/src/day01.rs +++ b/aoc2025/src/day01.rs @@ -1,6 +1,6 @@ use std::{fmt::Write, str::FromStr}; -use anyhow::{bail, Result}; +use anyhow::{Result, bail}; const INPUT: &str = include_str!("../input/day01.txt"); const DIAL_SIZE: u16 = 100; diff --git a/aoc2025/src/day02.rs b/aoc2025/src/day02.rs index 6388ad5..60613cf 100644 --- a/aoc2025/src/day02.rs +++ b/aoc2025/src/day02.rs @@ -1,4 +1,4 @@ -use anyhow::{anyhow, Context, Result}; +use anyhow::{Context, Result, anyhow}; use std::{fmt::Write, ops::RangeInclusive, str::FromStr}; const INPUT: &str = include_str!("../input/day02.txt"); diff --git a/aoc2025/src/day04.rs b/aoc2025/src/day04.rs index 7761cf3..91f24ce 100644 --- a/aoc2025/src/day04.rs +++ b/aoc2025/src/day04.rs @@ -1,6 +1,6 @@ use std::{fmt::Write, str::FromStr}; -use anyhow::{bail, Result}; +use anyhow::{Result, bail}; const INPUT: &str = include_str!("../input/day04.txt");