Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Bump derive_more dependency to 1.0.0 #6

Merged
merged 1 commit into from
Feb 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ rust-version = "1.74.0"
malachite = "<=0.4.18"
num-traits = { version = "0.2.11", default-features = false, features = ["i128"] }
num-integer = { version = "0.1.45", default-features = false, features = ["i128"] }
derive_more = "0.99.17"
derive_more = { version = "1.0.0", features = ["display", "from", "into"] }
paste = "1.0.12"
num-bigint = { version = "0.4", default-features = false, optional = true }
5 changes: 3 additions & 2 deletions src/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use num_traits::{
use paste::paste;
use std::{
cmp::Ordering,
fmt::Debug,
iter::{Product, Sum},
ops::{
Add, AddAssign, BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Div,
Expand Down Expand Up @@ -78,7 +79,7 @@ impl Neg for Sign {
From,
Into,
)]
#[display(fmt = "{}", "self.0")]
#[display("{}", "self.0")]
#[into(owned, ref, ref_mut)]
pub struct BigInt(Integer);

Expand Down Expand Up @@ -139,7 +140,7 @@ impl_sum_iter_type!(BigInt);

impl std::fmt::Debug for BigInt {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.0.fmt(f)
Debug::fmt(&self.0, f)
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/biguint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use num_traits::{
use paste::paste;
use std::{
cmp::Ordering::{Equal, Greater, Less},
fmt::Debug,
iter::{Product, Sum},
ops::{
Add, AddAssign, BitAnd, BitAndAssign, BitOr, BitOrAssign, BitXor, BitXorAssign, Div,
Expand Down Expand Up @@ -53,7 +54,7 @@ impl_primitive_convert!(BigUint, f64);
From,
Into,
)]
#[display(fmt = "{}", "self.0")]
#[display("{}", "self.0")]
#[into(owned, ref, ref_mut)]
pub struct BigUint(pub(crate) Natural);

Expand Down Expand Up @@ -112,7 +113,7 @@ impl_sum_iter_type!(BigUint);

impl std::fmt::Debug for BigUint {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.0.fmt(f)
Debug::fmt(&self.0, f)
}
}

Expand Down