clippies!
All checks were successful
test / AoC 2024 (push) Successful in 1m44s

This commit is contained in:
2024-12-16 14:54:45 -08:00
parent 28a88e1aa7
commit 5e8b974137
4 changed files with 24 additions and 17 deletions

View File

@ -1,6 +1,6 @@
use num_traits::Signed;
use std::fmt::Display;
use std::ops::{Add, AddAssign};
use std::fmt::{Debug, Display};
/// Wrapped signed integer with custom upper bound with wrapping of 0s to the upper bound
#[derive(Eq, Clone, Copy)]
@ -71,7 +71,10 @@ impl<T: Signed + PartialOrd + Copy> PartialOrd<T> for CustomWrapped<T> {
}
}
impl<T: Display + Signed + Copy> Display for CustomWrapped<T> where T: Display {
impl<T: Display + Signed + Copy> Display for CustomWrapped<T>
where
T: Display,
{
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.val.fmt(f)
}