From 9fae66d7cdbba8fd68d835c23e2fd7739c185024 Mon Sep 17 00:00:00 2001 From: Agathe Porte Date: Sun, 12 Jul 2020 00:34:37 +0200 Subject: initial commit --- src/lib.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/lib.rs (limited to 'src/lib.rs') 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 -- cgit v1.2.3