Skip to content

Commit

Permalink
fixup! Update gix-config setters.
Browse files Browse the repository at this point in the history
  • Loading branch information
bittrance committed Jan 30, 2024
1 parent ed38985 commit 86e5f83
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gix/src/config/tree/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pub trait Key: std::fmt::Debug {
/// The section containing this key. Git configuration has no free-standing keys, they are always underneath a section.
fn section(&self) -> &dyn Section;
/// TODO
fn as_config_key<'a>(&self) -> &dyn gix_config::Key;
fn as_config_key(&self) -> &dyn gix_config::Key;
/// The return value encodes three possible states to indicate subsection requirements
/// * `None` = subsections may or may not be used, the most flexible setting.
/// * `Some([Requirement][SubSectionRequirement])` = subsections must or must not be used, depending on the value
Expand Down
2 changes: 1 addition & 1 deletion gix/tests/remote/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ mod blocking_and_async_io {
let (mut repo, _tmp) = repo_rw("two-origins");
if let Some(version) = version {
repo.config_snapshot_mut()
.set_raw_value(Protocol::VERSION, (version as u8).to_string().as_str())?;
.set_raw_value(&Protocol::VERSION, (version as u8).to_string().as_str())?;
}

// No updates
Expand Down
2 changes: 1 addition & 1 deletion gix/tests/remote/ref_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ mod blocking_and_async_io {
let mut repo = remote::repo("clone");
if let Some(version) = version {
repo.config_snapshot_mut()
.set_raw_value(Protocol::VERSION, (version as u8).to_string().as_str())?;
.set_raw_value(&Protocol::VERSION, (version as u8).to_string().as_str())?;
}

let remote = into_daemon_remote_if_async(
Expand Down

0 comments on commit 86e5f83

Please sign in to comment.