forked from AbleOS/ableos_userland
update tar to have different names for errors and pub them
This commit is contained in:
parent
d16bc14ffc
commit
4844fe8b07
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -248,7 +248,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "tar"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"versioning",
|
||||
]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "tar"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
#![no_std]
|
||||
pub const VERSION: versioning::Version = versioning::Version {
|
||||
major: 0,
|
||||
minor: 1,
|
||||
patch: 0,
|
||||
};
|
||||
|
||||
use versioning::Version;
|
||||
pub const VERSION: Version = Version::new(0, 1, 1);
|
||||
|
||||
pub struct Header {
|
||||
pub filename: [char; 100],
|
||||
|
@ -93,7 +91,7 @@ fn from2tar() {
|
|||
// assert_eq!(array)
|
||||
}
|
||||
|
||||
enum Error {
|
||||
pub enum TarError {
|
||||
InvalidChecksum,
|
||||
InvalidFileData,
|
||||
InvalidTarFormat,
|
||||
|
@ -104,7 +102,7 @@ enum Error {
|
|||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
enum FileType {
|
||||
pub enum FileType {
|
||||
Directory,
|
||||
Regular,
|
||||
Other(char),
|
||||
|
|
Loading…
Reference in a new issue