File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
use core:: cmp:: max;
4
4
use std:: ffi:: OsStr ;
5
- use std:: fmt;
6
5
use std:: io:: { Cursor , Seek } ;
7
6
use std:: iter:: FusedIterator ;
8
7
use std:: mem;
@@ -693,7 +692,7 @@ fn file_hash(src: &Path) -> Result<blake3::Hash> {
693
692
}
694
693
695
694
/// Returns image file size and Exif.
696
- pub fn image_metadata ( file : & std:: fs:: File ) -> Result < ( u64 , Option < exif:: Exif > ) > {
695
+ fn image_metadata ( file : & std:: fs:: File ) -> Result < ( u64 , Option < exif:: Exif > ) > {
697
696
let len = file. metadata ( ) ?. len ( ) ;
698
697
let mut bufreader = std:: io:: BufReader :: new ( file) ;
699
698
let exif = exif:: Reader :: new ( ) . read_from_container ( & mut bufreader) . ok ( ) ;
@@ -714,12 +713,6 @@ fn exif_orientation(exif: &exif::Exif, context: &Context) -> i32 {
714
713
0
715
714
}
716
715
717
- impl fmt:: Display for BlobObject < ' _ > {
718
- fn fmt ( & self , f : & mut fmt:: Formatter < ' _ > ) -> fmt:: Result {
719
- write ! ( f, "$BLOBDIR/{}" , self . name)
720
- }
721
- }
722
-
723
716
/// All files in the blobdir.
724
717
///
725
718
/// This exists so we can have a [`BlobDirIter`] which needs something to own the data of
You can’t perform that action at this time.
0 commit comments