summaryrefslogtreecommitdiffstats
path: root/src/options/option_value.rs
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2020-12-28 03:17:21 +0000
committerGitHub <noreply@github.com>2020-12-28 03:17:21 +0000
commit959b211e050f408a1b5fe9c40ac81573e3ac0937 (patch)
treead7e374f26a75df3bcdb85da06ae1a8f270131bd /src/options/option_value.rs
parent7990db4b94801c1a5ba437d32293626ae3878a32 (diff)
parent91f6707fb186279a505fdb69456d11dbf93870fd (diff)
Merge pull request #473 from dandavison/move-line-number
Move line number into hunk header
Diffstat (limited to 'src/options/option_value.rs')
-rw-r--r--src/options/option_value.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/options/option_value.rs b/src/options/option_value.rs
index d569f676..cbe5b383 100644
--- a/src/options/option_value.rs
+++ b/src/options/option_value.rs
@@ -55,13 +55,6 @@ impl From<OptionValue> for Option<String> {
fn from(value: OptionValue) -> Self {
match value {
OptionValue::OptionString(value) => value,
- // HACK: See the comment in options::set::compute_line_numbers_mode(). That function
- // deliberately reads what is normally a boolean value ('line-numbers') as a string.
- // However options::get::get_option_value() can fall through to obtaining the value
- // from builtin_features, in which case an OptionValue::Boolean will be encountered.
- // See the comment in options::set::compute_line_numbers_mode() and docstring of
- // options::get::get_option_value().
- OptionValue::Boolean(_) => None,
_ => delta_unreachable("Error converting OptionValue to Option<String>."),
}
}