fix: remove extra spacing between proc-macro invocation and recipient declaration
This commit is contained in:
parent
c5646caa32
commit
d3942a512c
1 changed files with 8 additions and 8 deletions
16
src/lib.rs
16
src/lib.rs
|
@ -1,50 +1,50 @@
|
||||||
use std::{boxed::Box, fs, io::Seek, path, vec};
|
use std::{boxed::Box, fs, io::Seek, path, vec};
|
||||||
|
|
||||||
use walkdir::WalkDir;
|
use walkdir::WalkDir;
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct KosmoraVfs {
|
pub struct KosmoraVfs {
|
||||||
index: KosmoraIndex,
|
index: KosmoraIndex,
|
||||||
packages: Vec<KosmoraPackage>,
|
packages: Vec<KosmoraPackage>,
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
struct KosmoraIndex {
|
struct KosmoraIndex {
|
||||||
index: Vec<KosmoraPackage>,
|
index: Vec<KosmoraPackage>,
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
struct KosmoraPackage {
|
struct KosmoraPackage {
|
||||||
id: usize,
|
id: usize,
|
||||||
inode_index: KosmoraDirectory,
|
inode_index: KosmoraDirectory,
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub enum KosmoraINodeType {
|
pub enum KosmoraINodeType {
|
||||||
File(KosmoraFile),
|
File(KosmoraFile),
|
||||||
Directory(KosmoraDirectory),
|
Directory(KosmoraDirectory),
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct KosmoraFileMetadata {
|
pub struct KosmoraFileMetadata {
|
||||||
name: String,
|
name: String,
|
||||||
extension: Option<String>,
|
extension: Option<String>,
|
||||||
size: usize,
|
size: usize,
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct KosmoraFile {
|
pub struct KosmoraFile {
|
||||||
metadata: KosmoraFileMetadata,
|
metadata: KosmoraFileMetadata,
|
||||||
data: Vec<u8>,
|
data: Vec<u8>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct KosmoraDirectory {
|
pub struct KosmoraDirectory {
|
||||||
name: String,
|
name: String,
|
||||||
parent: Option<Box<KosmoraDirectory>>,
|
parent: Option<Box<KosmoraDirectory>>,
|
||||||
children: Option<Vec<KosmoraINode>>,
|
children: Option<Vec<KosmoraINode>>,
|
||||||
}
|
}
|
||||||
#[derive(Debug)]
|
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct KosmoraINode {
|
pub struct KosmoraINode {
|
||||||
inode: KosmoraINodeType,
|
inode: KosmoraINodeType,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue