Merge pull request #41 from rustic-rs/fix-empty-device

fix empty device for device or chardev files
This commit is contained in:
aawsome 2022-07-01 15:26:15 +02:00 committed by GitHub
commit bacfe1cfed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,9 +28,17 @@ pub struct Node {
pub enum NodeType {
File,
Dir,
Symlink { linktarget: String },
Dev { device: u64 },
Chardev { device: u64 },
Symlink {
linktarget: String,
},
Dev {
#[serde(default)]
device: u64,
},
Chardev {
#[serde(default)]
device: u64,
},
Fifo,
Socket,
}