diff options
author | Romain Porte <microjoe@microjoe.org> | 2020-07-12 00:34:37 +0200 |
---|---|---|
committer | Romain Porte <microjoe@microjoe.org> | 2020-07-14 10:38:23 +0200 |
commit | fc0ca71193af110d1edd84959f25064490895569 (patch) | |
tree | 451b9c3853269e9fb54b2f21def19b4252825317 /src/lib.rs | |
download | plymouth-rs-fc0ca71193af110d1edd84959f25064490895569.tar.gz plymouth-rs-fc0ca71193af110d1edd84959f25064490895569.zip |
initial commit
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..54bee5b --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,14 @@ +mod plymouthd; +mod theme; + +pub use plymouthd::Plymouthd; +pub use theme::Theme; + +use std::io; + +fn ini_to_io_err(e: ini::ini::Error) -> io::Error { + match e { + ini::ini::Error::Io(x) => x, + ini::ini::Error::Parse(x) => io::Error::new(io::ErrorKind::InvalidData, x), + } +}
\ No newline at end of file |