diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2024-10-24 18:30:28 +0200 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2024-10-24 18:30:28 +0200 |
| commit | c74e310c35fb7ec6b59a1c73720db4d6d8e236a1 (patch) | |
| tree | 94cd2e379725a0e999ef82447b947e78ecee3cf8 | |
| parent | feat: add error message for empty config (diff) | |
| download | sl0pstatus-c74e310c35fb7ec6b59a1c73720db4d6d8e236a1.tar.gz sl0pstatus-c74e310c35fb7ec6b59a1c73720db4d6d8e236a1.tar.xz sl0pstatus-c74e310c35fb7ec6b59a1c73720db4d6d8e236a1.zip | |
chore: linting changes
| -rw-r--r-- | src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 44f4313..0002cd0 100644 --- a/src/config.rs +++ b/src/config.rs @@ -311,7 +311,7 @@ impl ModuleConfig { ) -> String { if self.left_parts.is_empty() && self.center_parts.is_empty() && self.right_parts.is_empty() { - return format!("No configuration found. See https://github.com/dj95/zjstatus/wiki/3-%E2%80%90-Configuration for more info"); + return "No configuration found. See https://github.com/dj95/zjstatus/wiki/3-%E2%80%90-Configuration for more info".to_string(); } let output_left = self.left_parts.iter_mut().fold("".to_owned(), |acc, part| { |
