File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,6 @@ use std::fs;
234234use std:: io:: { self , Read } ;
235235use std:: ops:: Deref ;
236236use std:: path:: { Path , PathBuf } ;
237- use std:: time:: Instant ;
238237
239238use flate2:: read:: DeflateDecoder ;
240239
@@ -940,19 +939,6 @@ impl<'a> CrateLocator<'a> {
940939 }
941940}
942941
943- // Just a small wrapper to time how long reading metadata takes.
944- fn get_metadata_section (
945- target : & Target ,
946- flavor : CrateFlavor ,
947- filename : & Path ,
948- loader : & dyn MetadataLoader ,
949- ) -> Result < MetadataBlob , String > {
950- let start = Instant :: now ( ) ;
951- let ret = get_metadata_section_imp ( target, flavor, filename, loader) ;
952- info ! ( "reading {:?} => {:?}" , filename. file_name( ) . unwrap( ) , start. elapsed( ) ) ;
953- ret
954- }
955-
956942/// A trivial wrapper for `Mmap` that implements `StableDeref`.
957943struct StableDerefMmap ( memmap:: Mmap ) ;
958944
@@ -966,7 +952,7 @@ impl Deref for StableDerefMmap {
966952
967953unsafe impl stable_deref_trait:: StableDeref for StableDerefMmap { }
968954
969- fn get_metadata_section_imp (
955+ fn get_metadata_section (
970956 target : & Target ,
971957 flavor : CrateFlavor ,
972958 filename : & Path ,
You can’t perform that action at this time.
0 commit comments