mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 03:48:01 +00:00
Remove mem_info and references to parity-util-mem (#12795)
* Remove mem_info and some references to parity-util-mem * [Draft] Finish removing references to `parity-util-mem` * Upgrade dependencies * Update scripts/ci/deny.toml Co-authored-by: ordian <write@reusable.software> * Fix Cargo.lock (remove unwanted dependency changes) * Removed unused argument * Run cargo fmt (didn't have pre-commit set up) * Fix some CI errors * Fix another CI error * Remove unused dependency Co-authored-by: ordian <write@reusable.software>
This commit is contained in:
@@ -59,15 +59,11 @@ pub struct Cache<B: BlockT> {
|
||||
|
||||
struct LRUMap<K, V>(LinkedHashMap<K, V>, usize, usize);
|
||||
|
||||
/// Internal trait similar to `heapsize` but using
|
||||
/// a simply estimation.
|
||||
/// Internal trait similar to `heapsize` but using a simple estimation.
|
||||
///
|
||||
/// This should not be made public, it is implementation
|
||||
/// detail trait. If it need to become public please
|
||||
/// consider using `malloc_size_of`.
|
||||
/// This should not be made public, it is an implementation detail trait.
|
||||
trait EstimateSize {
|
||||
/// Return a size estimation of additional size needed
|
||||
/// to cache this struct (in bytes).
|
||||
/// Return a size estimation of the additional size needed to cache this struct (in bytes).
|
||||
fn estimate_size(&self) -> usize;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user