diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-05-05 22:50:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 22:50:23 +0000 |
commit | 81ce93574f62d4b117fdd79af65391f30316a457 (patch) | |
tree | 951a0578860c6028e2dfff0ca83879001c6b2385 /alacritty/src/config/mouse.rs | |
parent | 04f0bcaf54ed373128ca0f84ee8fcdd8e52bce23 (diff) | |
download | r-alacritty-81ce93574f62d4b117fdd79af65391f30316a457.tar.gz r-alacritty-81ce93574f62d4b117fdd79af65391f30316a457.tar.bz2 r-alacritty-81ce93574f62d4b117fdd79af65391f30316a457.zip |
Extend style guideline documentation
Diffstat (limited to 'alacritty/src/config/mouse.rs')
-rw-r--r-- | alacritty/src/config/mouse.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty/src/config/mouse.rs b/alacritty/src/config/mouse.rs index b7832b4a..9192aba9 100644 --- a/alacritty/src/config/mouse.rs +++ b/alacritty/src/config/mouse.rs @@ -24,11 +24,11 @@ pub struct Mouse { #[serde(default)] #[derive(Clone, Debug, Deserialize, PartialEq, Eq)] pub struct Url { - // Program for opening links + /// Program for opening links. #[serde(deserialize_with = "deserialize_launcher")] pub launcher: Option<CommandWrapper>, - // Modifier used to open links + /// Modifier used to open links. #[serde(deserialize_with = "failure_default")] modifiers: ModsWrapper, } @@ -47,10 +47,10 @@ where { let default = Url::default().launcher; - // Deserialize to generic value + // Deserialize to generic value. let val = serde_yaml::Value::deserialize(deserializer)?; - // Accept `None` to disable the launcher + // Accept `None` to disable the launcher. if val.as_str().filter(|v| v.to_lowercase() == "none").is_some() { return Ok(None); } |