File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 33pub mod conversion;
44pub mod hashes;
55pub mod kid_uri;
6+ pub mod mmap_file;
67pub mod problem_report;
78pub mod uuid;
8- pub mod mmap_file;
Original file line number Diff line number Diff line change 11//! Memory-mapped file.
22
33use core:: fmt;
4- use fmmap:: { MmapFile , MmapFileExt } ;
5- use once_cell:: sync:: Lazy ;
6- use serde:: { ser:: SerializeStruct , Serialize , Serializer } ;
74use std:: {
85 path:: Path ,
96 sync:: {
@@ -12,6 +9,10 @@ use std::{
129 } ,
1310} ;
1411
12+ use fmmap:: { MmapFile , MmapFileExt } ;
13+ use once_cell:: sync:: Lazy ;
14+ use serde:: { ser:: SerializeStruct , Serialize , Serializer } ;
15+
1516/// Memory-mapped file.
1617pub struct MemoryMapFile {
1718 /// The memory-mapped file.
@@ -179,9 +180,7 @@ impl fmt::Debug for MemMapFileStatInner {
179180
180181impl Serialize for MemMapFileStatInner {
181182 fn serialize < S > ( & self , serializer : S ) -> Result < S :: Ok , S :: Error >
182- where
183- S : Serializer ,
184- {
183+ where S : Serializer {
185184 let mut state = serializer. serialize_struct ( "MemMapFileStat" , 5 ) ?;
186185
187186 state. serialize_field ( "file_count" , & self . file_count . load ( Ordering :: SeqCst ) ) ?;
You can’t perform that action at this time.
0 commit comments