fix errors

This commit is contained in:
Boog900 2024-06-18 21:54:21 +01:00
parent 1b255f4fa5
commit 3bd7981d5f
No known key found for this signature in database
GPG key ID: 42AB1287CB0041C2
8 changed files with 14 additions and 9 deletions

View file

@ -27,5 +27,6 @@ jobs:
- name: Install dependencies
run: cargo install cargo-hack --locked
- name: Deny
run: cargo deny check
- name: Hack Check
# TODO: remove the exclude when `cuprate-blockchain` errors are fixed
run: argo hack --workspace --exclude cuprate-blockchain check --feature-powerset --no-dev-deps

View file

@ -6,7 +6,7 @@
use crossbeam::atomic::AtomicCell;
#[allow(unused_imports)] // docs
use std::sync::atomic::{Ordering, Ordering::Acquire, Ordering::Release};
use core::sync::atomic::{Ordering, Ordering::Acquire, Ordering::Release};
//---------------------------------------------------------------------------------------------------- Atomic Float
/// Compile-time assertion that our floats are

View file

@ -43,7 +43,7 @@ pub mod atomic;
#[cfg(feature = "constants")]
pub mod constants;
#[cfg(feature = "fs")]
#[cfg(all(feature = "fs", feature = "std"))]
pub mod fs;
pub mod network;

View file

@ -1,3 +1,5 @@
use alloc::{string::ToString, vec, vec::Vec};
use bytes::{Buf, BufMut, Bytes, BytesMut};
use ref_cast::RefCast;
use sealed::sealed;
@ -72,7 +74,7 @@ pub trait Containerable {
macro_rules! int_container_able {
($int:ty ) => {
impl Containerable for $int {
const SIZE: usize = std::mem::size_of::<$int>();
const SIZE: usize = core::mem::size_of::<$int>();
fn from_bytes(bytes: &[u8]) -> Self {
<$int>::from_le_bytes(bytes.try_into().unwrap())

View file

@ -1,3 +1,4 @@
use alloc::string::{String, ToString};
use core::{
fmt::{Debug, Formatter},
num::TryFromIntError,

View file

@ -61,6 +61,7 @@
extern crate alloc;
use alloc::string::ToString;
use core::{ops::Deref, str::from_utf8 as str_from_utf8};
use bytes::{Buf, BufMut, Bytes, BytesMut};

View file

@ -1,6 +1,6 @@
use alloc::{string::String, vec::Vec};
/// This module contains a `sealed` [`EpeeValue`] trait and different impls for
/// the different possible base epee values.
//! This module contains a `sealed` [`EpeeValue`] trait and different impls for
//! the different possible base epee values.
use alloc::{string::String, vec, vec::Vec};
use core::fmt::Debug;
use bytes::{Buf, BufMut, Bytes, BytesMut};

View file

@ -14,7 +14,7 @@ cuprate-helper = { path = "../../helper" }
monero-wire = { path = "../../net/monero-wire", features = ["tracing"] }
monero-pruning = { path = "../../pruning" }
tokio = { workspace = true, features = ["net", "sync", "macros", "time"]}
tokio = { workspace = true, features = ["net", "sync", "macros", "time", "rt"]}
tokio-util = { workspace = true, features = ["codec"] }
tokio-stream = { workspace = true, features = ["sync"]}
futures = { workspace = true, features = ["std"] }