Skip to content

Commit 031b779

Browse files
implemented suggested change
1 parent 8f0c7cb commit 031b779

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/settings.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ impl Settings {
219219
#[must_use]
220220
pub fn with_distinct_attribute(self, distinct_attribute: Option<impl AsRef<str>>) -> Settings {
221221
Settings {
222-
distinct_attribute: Some(distinct_attribute.map(|distinct| distinct.to_string())),
222+
distinct_attribute: Some(
223+
distinct_attribute.map(|distinct| distinct.as_ref().to_string()),
224+
),
223225
..self
224226
}
225-
226-
}
227227
}
228228

229229
#[must_use]

0 commit comments

Comments
 (0)