Skip to content

Commit

Permalink
fix project
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Nov 2, 2024
1 parent f7b42f0 commit 1dcb9b6
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- macos-latest
- windows-latest
toolchain:
- 1.69
- "1.70"
features:
-
- --features u128
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- macos-latest
- windows-latest
toolchain:
- 1.69
- "1.70"
features:
-
- --features u128
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "byte-unit"
version = "5.1.5"
authors = ["Magic Len <[email protected]>"]
edition = "2021"
rust-version = "1.69"
rust-version = "1.70"
repository = "https://github.com/magiclen/byte-unit"
homepage = "https://magiclen.org/byte-unit"
keywords = ["byte", "unit", "kb", "mb", "gb"]
Expand Down
2 changes: 2 additions & 0 deletions src/bit/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ impl Bit {
/// # Points to Note
///
/// * If the calculated bit is too large, this function will return `None`.
#[allow(unexpected_cfgs)]
#[inline]
pub const fn multiply(self, rhs: usize) -> Option<Bit> {
#[cfg(feature = "u128")]
Expand Down Expand Up @@ -743,6 +744,7 @@ impl Bit {
///
/// * If the input right-hand side is zero, this function will return `None`.
/// * The result will be rounded down.
#[allow(unexpected_cfgs)]
#[inline]
pub const fn divide(self, rhs: usize) -> Option<Bit> {
#[cfg(feature = "u128")]
Expand Down
2 changes: 2 additions & 0 deletions src/byte/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -715,6 +715,7 @@ impl Byte {
/// # Points to Note
///
/// * If the calculated byte is too large, this function will return `None`.
#[allow(unexpected_cfgs)]
#[inline]
pub const fn multiply(self, rhs: usize) -> Option<Byte> {
#[cfg(feature = "u128")]
Expand Down Expand Up @@ -760,6 +761,7 @@ impl Byte {
///
/// * If the input right-hand side is zero, this function will return `None`.
/// * The result will be rounded down.
#[allow(unexpected_cfgs)]
#[inline]
pub const fn divide(self, rhs: usize) -> Option<Byte> {
#[cfg(feature = "u128")]
Expand Down
1 change: 0 additions & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ impl Display for UnitParseError {
}
}

#[cfg(any(feature = "byte", feature = "bit"))]
#[cfg(feature = "std")]
impl Error for UnitParseError {}

Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,6 @@ features = ["rocket"]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

#[cfg(feature = "serde")]
#[macro_use]
extern crate alloc;
#[cfg(feature = "rust_decimal")]
pub extern crate rust_decimal;

Expand Down

0 comments on commit 1dcb9b6

Please sign in to comment.