summary refs log tree commit diff
path: root/ripple/fossil/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'ripple/fossil/src/bin')
-rw-r--r--ripple/fossil/src/bin/extract.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ripple/fossil/src/bin/extract.rs b/ripple/fossil/src/bin/extract.rs
index 685805d..e55c857 100644
--- a/ripple/fossil/src/bin/extract.rs
+++ b/ripple/fossil/src/bin/extract.rs
@@ -32,13 +32,13 @@ fn extract(store: &fossil::Store, path: &Path, dir: &Directory) {
 	for (name, node) in &dir.children {
 		let path = path.join(name);
 		match node.clone() {
-			fossil::Node::Directory { r#ref, size: _ } => {
-				let blob = store.read_blob(r#ref);
+			fossil::Node::Directory(fossil::DirectoryRef { ident, size: _ }) => {
+				let blob = store.read_blob(ident);
 				let pb = store::Directory::decode(&*blob).unwrap();
 				fs::create_dir(&path).unwrap();
 				extract(store, &path, &Directory::from_pb(pb));
 			}
-			fossil::Node::File { r#ref, executable } => {
+			fossil::Node::File(fossil::FileRef { ident, executable }) => {
 				let mode = if executable { 0o755 } else { 0o644 };
 				let mut f = fs::OpenOptions::new()
 					.write(true)
@@ -46,7 +46,7 @@ fn extract(store: &fossil::Store, path: &Path, dir: &Directory) {
 					.mode(mode)
 					.open(path)
 					.unwrap();
-				let blob = store.read_blob(r#ref);
+				let blob = store.read_blob(ident);
 				f.write_all(&blob).unwrap();
 			}
 			fossil::Node::Link { target } => {