idk why this isn't in master yet #94

Merged
cscherrNT merged 79 commits from devel into master 2024-07-22 13:30:20 +02:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit e9c3402aff - Show all commits

View File

@ -25,5 +25,5 @@ pub const YOBI: u128 = 2u128.pow(80);
// use libpt_core;
pub mod datalayout;
pub mod display;
pub mod split;
pub mod join;
pub mod split;

View File

@ -3,7 +3,6 @@
//! Sometimes, you need a large integer in the form of many bytes, so split into [u8].
//! Rust provides
/// Split unsigned integers into a [Vec] of [u8]s
///
/// Say you have the [u32] 1717 (binary: `00000000 00000000 00000110 10110101 `). This number would
@ -23,7 +22,7 @@
/// ```
pub fn unsigned_to_vec<T>(num: T) -> Vec<u8>
where
u128: std::convert::From<T>
u128: std::convert::From<T>,
{
let mut num: u128 = num.into();
if num == 0 {