History

adjustments for breaking changes in `git-config` (#331)

Sebastian Thiel committed 4 years ago

Commit d3841ee1 parent 9cadc6f2 files · +2 −2Browse files

Unified · Split

2 files
  1. git-repository/src/config.rs +1 −1
  2. git-repository/src/lib.rs +1 −1
git-repository/src/config.rs+1−1
@@ -101,7 +101,7 @@ mod cache { · 100 unmodified lines
101101 }
102102 if hex_len_str.as_ref() != "auto" {
103103 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) {
105105 hex_len = object_hash.len_in_hex().into();
106106 } else {
107107 let value = Integer::try_from(value_bytes)
git-repository/src/lib.rs+1−1
@@ -445,7 +445,7 @@ pub mod discover { · 444 unmodified lines
445445 .and_then(|v| Vec::from_os_string(v).ok().map(BString::from))
446446 {
447447 if let Ok(b) = git_config::Boolean::try_from(cross_fs) {
448− opts.cross_fs = b.to_bool();
448+ opts.cross_fs = b.into();
449449 }
450450 }
451451 opts