@@ -5,7 +5,7 @@ use crate::{
55 get_size:: GetSize ,
66 hardlink:: HardlinkListReflection ,
77 hook,
8- json_data:: { BinaryVersion , JsonData , JsonTree , SchemaVersion , UnitAndTree } ,
8+ json_data:: { BinaryVersion , JsonData , JsonDataBody , JsonTree , SchemaVersion } ,
99 os_string_display:: OsStringDisplay ,
1010 reporter:: ParallelReporter ,
1111 runtime_error:: RuntimeError ,
2424 Size : size:: Size + Into < u64 > + Serialize + Send + Sync ,
2525 SizeGetter : GetSize < Size = Size > + Copy + Sync ,
2626 Hook : hook:: Hook < Size , Report > + DeduplicateHardlinkSizes < Size > + Copy + Sync ,
27- JsonTree < Size > : Into < UnitAndTree > ,
27+ JsonTree < Size > : Into < JsonDataBody > ,
2828{
2929 /// List of files and/or directories.
3030 pub files : Vec < PathBuf > ,
6060 Report : ParallelReporter < Size > + Sync ,
6161 SizeGetter : GetSize < Size = Size > + Copy + Sync ,
6262 Hook : hook:: Hook < Size , Report > + DeduplicateHardlinkSizes < Size > + Copy + Sync ,
63- JsonTree < Size > : Into < UnitAndTree > ,
63+ JsonTree < Size > : Into < JsonDataBody > ,
6464{
6565 /// Run the sub program.
6666 pub fn run ( self ) -> Result < ( ) , RuntimeError > {
@@ -154,7 +154,7 @@ where
154154 let json_data = JsonData {
155155 schema_version : SchemaVersion ,
156156 binary_version : Some ( BinaryVersion :: current ( ) ) ,
157- unit_and_tree : json_tree. into ( ) ,
157+ body : json_tree. into ( ) ,
158158 } ;
159159 return serde_json:: to_writer ( stdout ( ) , & json_data)
160160 . map_err ( RuntimeError :: SerializationFailure ) ;
0 commit comments