Unified · Split
| @@ -101,7 +101,7 @@ mod cache { · 100 unmodified lines | |||
| 101 | } | 101 | } |
| 102 | if hex_len_str.as_ref() != "auto" { | 102 | if hex_len_str.as_ref() != "auto" { |
| 103 | let value_bytes = hex_len_str.as_ref(); | 103 | let value_bytes = hex_len_str.as_ref(); |
| 104 | if let Ok(Boolean::False(_)) = Boolean::try_from(value_bytes) { | 104 | if let Ok(false) = Boolean::try_from(value_bytes).map(Into::into) { |
| 105 | hex_len = object_hash.len_in_hex().into(); | 105 | hex_len = object_hash.len_in_hex().into(); |
| 106 | } else { | 106 | } else { |
| 107 | let value = Integer::try_from(value_bytes) | 107 | let value = Integer::try_from(value_bytes) |
| @@ -445,7 +445,7 @@ pub mod discover { · 444 unmodified lines | |||
| 445 | .and_then(|v| Vec::from_os_string(v).ok().map(BString::from)) | 445 | .and_then(|v| Vec::from_os_string(v).ok().map(BString::from)) |
| 446 | { | 446 | { |
| 447 | if let Ok(b) = git_config::Boolean::try_from(cross_fs) { | 447 | if let Ok(b) = git_config::Boolean::try_from(cross_fs) { |
| 448 | opts.cross_fs = b.to_bool(); | 448 | opts.cross_fs = b.into(); |
| 449 | } | 449 | } |
| 450 | } | 450 | } |
| 451 | opts | 451 | opts |