diff options
| author | Irene Knapp <ireneista@irenes.space> | 2026-11-23 17:53:35 -0700 |
|---|---|---|
| committer | Irene Knapp <ireneista@irenes.space> | 2026-11-23 17:53:35 -0700 |
| commit | a75729a759108ae672d8d1cfcc6252a6b680ef1f (patch) | |
| tree | c23862c1b9c0b92f837ec21884c7928d78532d01 /src/error.rs | |
| parent | 2c3596229ea752110dff065528d3fda8e8ba95aa (diff) | |
begin to stub out an I3 facility
identifying the socket turns out to be quite some work Force-Push: yes Change-Id: I747e89410efdc38cb13d3be2ad3e985c1cdc9952
Diffstat (limited to 'src/error.rs')
| -rw-r--r-- | src/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/error.rs b/src/error.rs index 390d6da..a0aa68e 100644 --- a/src/error.rs +++ b/src/error.rs @@ -22,6 +22,12 @@ impl Display for Error { } } +impl From<std::env::VarError> for Error { + fn from(error: std::env::VarError) -> Error { + Error(format!("Environment variable: {}", error)) + } +} + impl From<std::io::Error> for Error { fn from(error: std::io::Error) -> Error { Error(format!("I/O: {}", error)) |