diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2021-02-28 17:40:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-28 17:40:55 -0500 |
commit | 53d8bdae3280854c428b4bf7de4bf765bcd4f6e4 (patch) | |
tree | fa949fe0d5c8ae12305e1cc85b27b5d4895f3817 /src/utils | |
parent | c406d956994dc0e7d1ef734dcc402ad49ae642f6 (diff) |
feature: User info in proc widget for Unix-based systems (#425)
Adds users into the process widget (for Unix-based systems). This shows only in non-grouped modes, similar to state. Search is also supported.
In addition, a quick fix to prevent users from being in grouped mode when they tried to enter tree mode while grouped.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/error.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/error.rs b/src/utils/error.rs index f0a965b0..1fc75bd7 100644 --- a/src/utils/error.rs +++ b/src/utils/error.rs @@ -86,6 +86,12 @@ impl From<std::str::Utf8Error> for BottomError { } } +impl From<std::string::FromUtf8Error> for BottomError { + fn from(err: std::string::FromUtf8Error) -> Self { + BottomError::ConversionError(err.to_string()) + } +} + impl From<regex::Error> for BottomError { fn from(err: regex::Error) -> Self { // We only really want the last part of it... so we'll do it the ugly way: |