fix: clippy warnings (#280)

This commit is contained in:
Augusto Hack
2024-02-22 05:55:02 +01:00
committed by GitHub
parent 24f72c986b
commit dbab0e9aa9
51 changed files with 197 additions and 163 deletions

View File

@@ -1,7 +1,8 @@
use core::cell::RefCell;
use winter_utils::{
collections::{btree_map::IntoIter, BTreeMap, BTreeSet},
Box,
use super::{
boxed::*,
collections::{btree_map::*, *},
};
// KEY-VALUE MAP TRAIT

View File

@@ -1,26 +1,29 @@
//! Utilities used in this crate which can also be generally useful downstream.
use super::{utils::string::String, Word};
use core::fmt::{self, Display, Write};
#[cfg(feature = "std")]
pub use std::{format, vec};
#[cfg(not(feature = "std"))]
pub use alloc::{format, vec};
#[cfg(feature = "std")]
pub use std::{format, vec};
use super::Word;
use crate::utils::string::*;
mod kv_map;
// RE-EXPORTS
// ================================================================================================
pub use winter_utils::{
string, uninit_vector, Box, ByteReader, ByteWriter, Deserializable, DeserializationError,
Serializable, SliceReader,
boxed, string, uninit_vector, Box, ByteReader, ByteWriter, Deserializable,
DeserializationError, Serializable, SliceReader,
};
pub mod collections {
pub use super::kv_map::*;
pub use winter_utils::collections::*;
pub use super::kv_map::*;
}
// UTILITY FUNCTIONS