|
@@ -279,7 +279,7 @@ impl<T: Target> Serializer<T> {
|
|
|
/// to limit the scope of `Serializer`’s borrow of its string.
|
|
/// to limit the scope of `Serializer`’s borrow of its string.
|
|
|
///
|
|
///
|
|
|
/// Panics if called after `.finish()`.
|
|
/// Panics if called after `.finish()`.
|
|
|
- pub fn append_pairs<I, K, V>(&mut self, iter: I) -> &mut Self
|
|
|
|
|
|
|
+ pub fn append_pair_iter<I, K, V>(&mut self, iter: I) -> &mut Self
|
|
|
where I: IntoIterator, I::Item: Borrow<(K, V)>, K: AsRef<str>, V: AsRef<str> {
|
|
where I: IntoIterator, I::Item: Borrow<(K, V)>, K: AsRef<str>, V: AsRef<str> {
|
|
|
{
|
|
{
|
|
|
let string = string(&mut self.target);
|
|
let string = string(&mut self.target);
|