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.
This commit is contained in:
parent
6cf10a0eb5
commit
7433687d69
4 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use criterion::{criterion_group, criterion_main, Criterion};
|
use criterion::{Criterion, criterion_group, criterion_main};
|
||||||
|
|
||||||
use aoc2025::day01;
|
use aoc2025::day01;
|
||||||
use aoc2025::day02;
|
use aoc2025::day02;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{fmt::Write, str::FromStr};
|
use std::{fmt::Write, str::FromStr};
|
||||||
|
|
||||||
use anyhow::{bail, Result};
|
use anyhow::{Result, bail};
|
||||||
|
|
||||||
const INPUT: &str = include_str!("../input/day01.txt");
|
const INPUT: &str = include_str!("../input/day01.txt");
|
||||||
const DIAL_SIZE: u16 = 100;
|
const DIAL_SIZE: u16 = 100;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
use anyhow::{anyhow, Context, Result};
|
use anyhow::{Context, Result, anyhow};
|
||||||
use std::{fmt::Write, ops::RangeInclusive, str::FromStr};
|
use std::{fmt::Write, ops::RangeInclusive, str::FromStr};
|
||||||
|
|
||||||
const INPUT: &str = include_str!("../input/day02.txt");
|
const INPUT: &str = include_str!("../input/day02.txt");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{fmt::Write, str::FromStr};
|
use std::{fmt::Write, str::FromStr};
|
||||||
|
|
||||||
use anyhow::{bail, Result};
|
use anyhow::{Result, bail};
|
||||||
|
|
||||||
const INPUT: &str = include_str!("../input/day04.txt");
|
const INPUT: &str = include_str!("../input/day04.txt");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue