Skip to content

Commit cf214e1

Browse files
committed
fix project
1 parent f7b42f0 commit cf214e1

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.github/workflows/ci-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
- macos-latest
6565
- windows-latest
6666
toolchain:
67-
- 1.69
67+
- "1.70"
6868
features:
6969
-
7070
- --features u128

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- macos-latest
8181
- windows-latest
8282
toolchain:
83-
- 1.69
83+
- "1.70"
8484
features:
8585
-
8686
- --features u128

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "byte-unit"
33
version = "5.1.5"
44
authors = ["Magic Len <[email protected]>"]
55
edition = "2021"
6-
rust-version = "1.69"
6+
rust-version = "1.70"
77
repository = "https://github.com/magiclen/byte-unit"
88
homepage = "https://magiclen.org/byte-unit"
99
keywords = ["byte", "unit", "kb", "mb", "gb"]

src/bit/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,7 @@ impl Bit {
698698
/// # Points to Note
699699
///
700700
/// * If the calculated bit is too large, this function will return `None`.
701+
#[allow(unexpected_cfgs)]
701702
#[inline]
702703
pub const fn multiply(self, rhs: usize) -> Option<Bit> {
703704
#[cfg(feature = "u128")]
@@ -743,6 +744,7 @@ impl Bit {
743744
///
744745
/// * If the input right-hand side is zero, this function will return `None`.
745746
/// * The result will be rounded down.
747+
#[allow(unexpected_cfgs)]
746748
#[inline]
747749
pub const fn divide(self, rhs: usize) -> Option<Bit> {
748750
#[cfg(feature = "u128")]

src/byte/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ impl Byte {
715715
/// # Points to Note
716716
///
717717
/// * If the calculated byte is too large, this function will return `None`.
718+
#[allow(unexpected_cfgs)]
718719
#[inline]
719720
pub const fn multiply(self, rhs: usize) -> Option<Byte> {
720721
#[cfg(feature = "u128")]
@@ -760,6 +761,7 @@ impl Byte {
760761
///
761762
/// * If the input right-hand side is zero, this function will return `None`.
762763
/// * The result will be rounded down.
764+
#[allow(unexpected_cfgs)]
763765
#[inline]
764766
pub const fn divide(self, rhs: usize) -> Option<Byte> {
765767
#[cfg(feature = "u128")]

src/errors.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ impl Display for UnitParseError {
111111
}
112112
}
113113

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

src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,6 @@ features = ["rocket"]
204204
#![cfg_attr(not(feature = "std"), no_std)]
205205
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
206206

207-
#[cfg(feature = "serde")]
208-
#[macro_use]
209-
extern crate alloc;
210207
#[cfg(feature = "rust_decimal")]
211208
pub extern crate rust_decimal;
212209

0 commit comments

Comments
 (0)