Skip to content

Commit c9a2390

Browse files
committed
thanks clippy
1 parent 5418bc7 commit c9a2390

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

git-config/src/file/mutable/value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ impl<'borrow, 'lookup, 'event> MutableMultiValue<'borrow, 'lookup, 'event> {
246246
section: &mut SectionBody<'event>,
247247
section_id: SectionBodyId,
248248
offset_index: usize,
249-
input: Cow<'a, BStr>,
249+
value: Cow<'a, BStr>,
250250
) {
251251
let (offset, size) = MutableMultiValue::index_and_size(offsets, section_id, offset_index);
252252
let section = section.as_mut();
253253
section.drain(offset..offset + size);
254254

255255
MutableMultiValue::set_offset(offsets, section_id, offset_index, 3);
256-
section.insert(offset, Event::Value(input));
256+
section.insert(offset, Event::Value(value));
257257
section.insert(offset, Event::KeyValueSeparator);
258258
section.insert(offset, Event::SectionKey(key.to_owned()));
259259
}

git-config/tests/file/mutable/value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ mod set_string {
113113
let mut config = init_config();
114114

115115
let mut value = config.raw_value_mut("core", None, "a")?;
116-
value.set_string("hello world".to_string());
116+
value.set_string("hello world");
117117
assert_eq!(
118118
config.to_string(),
119119
r#"[core]
@@ -176,7 +176,7 @@ mod delete {
176176

177177
let mut value = config.raw_value_mut("core", None, "a")?;
178178
value.delete();
179-
value.set_string("hello world".to_string());
179+
value.set_string("hello world");
180180
assert_eq!(
181181
config.to_string(),
182182
r#"[core]

0 commit comments

Comments
 (0)