error[E0425]: cannot find value `metadata` in this scope
--> ${HOME}\.cargo\registry\src\github.com-1ecc6299db9ec823\erdtree-1.3.0\src\fs\inode.rs:54:13
|
54 | metadata.file_index(),
| ^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use core::ptr::metadata;
|
1 | use std::fs::metadata;
|
1 | use std::ptr::metadata;
|
error[E0425]: cannot find value `metadata` in this scope
--> ${HOME}\.cargo\registry\src\github.com-1ecc6299db9ec823\erdtree-1.3.0\src\fs\inode.rs:55:13
|
55 | metadata.volume_serial_number(),
| ^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use core::ptr::metadata;
|
1 | use std::fs::metadata;
|
1 | use std::ptr::metadata;
|
error[E0425]: cannot find value `metadata` in this scope
--> ${HOME}\.cargo\registry\src\github.com-1ecc6299db9ec823\erdtree-1.3.0\src\fs\inode.rs:56:13
|
56 | metadata.number_of_links(),
| ^^^^^^^^ not found in this scope
|
help: consider importing one of these items
|
1 | use core::ptr::metadata;
|
1 | use std::fs::metadata;
|
1 | use std::ptr::metadata;
|
error[E0425]: cannot find value `nlink` in this scope
--> ${HOME}\.cargo\registry\src\github.com-1ecc6299db9ec823\erdtree-1.3.0\src\fs\inode.rs:58:42
|
58 | return Ok(Self::new(md, dev, nlink));
| ^^^^^
| |
| a field by this name exists in `Self`
| help: a local variable with a similar name exists: `nlinks`
error[E0308]: mismatched types
--> ${HOME}\.cargo\registry\src\github.com-1ecc6299db9ec823\erdtree-1.3.0\src\fs\inode.rs:58:33
|
58 | return Ok(Self::new(md, dev, nlink));
| --------- ^^ expected `u64`, found struct `Metadata`
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> ${HOME}\.cargo\registry\src\github.com-1ecc6299db9ec823\erdtree-1.3.0\src\fs\inode.rs:18:12
|
18 | pub fn new(ino: u64, dev: u64, nlink: u64) -> Self {
| ^^^ --------
Some errors have detailed explanations: E0308, E0425.
For more information about an error, try `rustc --explain E0308`.
error: could not compile `erdtree` due to 5 previous errors
error: failed to compile `erdtree v1.3.0`, intermediate artifacts can be found at `${HOME}\AppData\Local\Temp\cargo-installK25LHL`