Fix the IPC

This commit is contained in:
Luke D. Jones
2024-02-24 22:49:10 +13:00
parent 8e4b7d53f4
commit c3b02a2bb0
5 changed files with 134 additions and 140 deletions

View File

@@ -189,7 +189,7 @@ pub struct KeyLayout {
}
impl KeyLayout {
pub fn from_file(path: &Path) -> Result<Self, Error> {
fn from_file(path: &Path) -> Result<Self, Error> {
let buf: String = std::fs::read_to_string(path)
.map_err(|e| Error::IoPath(path.to_string_lossy().to_string(), e))?;
if buf.is_empty() {