summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Schreiber <info@schrieveslaach.de>2022-01-31 22:28:13 +0100
committerGitHub <noreply@github.com>2022-01-31 15:28:13 -0600
commitdcf66659d0e87e619a1a881b2745eb68dbcd41a1 (patch)
tree4bfbc66b536875360be3d7c978959efa89c9f9c2 /src
parent52b0e6512a5448fdf64362ddea3aa13aebd32714 (diff)
feat: Enable Undistract Me for Linux (#3547)
In #1019 the undistract feature has been added to starship without enabling it by default due to the system dependency on libdbus. With recent versions of notify-rust the dependency is no longer required and the feature can be enabled by default.
Diffstat (limited to 'src')
-rw-r--r--src/modules/cmd_duration.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/modules/cmd_duration.rs b/src/modules/cmd_duration.rs
index 133db31e4..628714ea0 100644
--- a/src/modules/cmd_duration.rs
+++ b/src/modules/cmd_duration.rs
@@ -51,20 +51,6 @@ pub fn module<'a>(context: &'a Context) -> Option<Module<'a>> {
Some(undistract_me(module, &config, elapsed))
}
-#[cfg(not(feature = "notify-rust"))]
-fn undistract_me<'a, 'b>(
- module: Module<'a>,
- config: &'b CmdDurationConfig,
- _elapsed: u128,
-) -> Module<'a> {
- if config.show_notifications {
- log::debug!("This version of starship was built without notification support.");
- }
-
- module
-}
-
-#[cfg(feature = "notify-rust")]
fn undistract_me<'a, 'b>(
module: Module<'a>,
config: &'b CmdDurationConfig,