Skip to content

Commit 5f3ff6f

Browse files
committed
JsonOptionsRef → JsonOpts
1 parent b84cc41 commit 5f3ff6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl JsonOptions {
280280
/// Unlike [`build()`][JsonOptions::build], this method makes it possible
281281
/// to create multiple `Formatter`s from a single `JsonOptions` instance.
282282
pub fn as_formatter(&self) -> JsonFormatter<'_> {
283-
JsonFormatter::new(internal::JsonOptionsRef {
283+
JsonFormatter::new(internal::JsonOpts {
284284
indent: self.indent.as_ref().map(|s| s.as_bytes()),
285285
comma: self.comma.as_bytes(),
286286
colon: self.colon.as_bytes(),
@@ -327,14 +327,14 @@ mod internal {
327327
}
328328

329329
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
330-
pub struct JsonOptionsRef<'a> {
330+
pub struct JsonOpts<'a> {
331331
pub indent: Option<&'a [u8]>,
332332
pub comma: &'a [u8],
333333
pub colon: &'a [u8],
334334
pub ascii: bool,
335335
}
336336

337-
impl<'a> OptionsData for JsonOptionsRef<'a> {
337+
impl<'a> OptionsData for JsonOpts<'a> {
338338
fn indent(&self) -> Option<&[u8]> {
339339
self.indent
340340
}
@@ -473,7 +473,7 @@ pub type JsonFormatterOwned = internal::JsonFormatterBase<JsonOptions>;
473473
///
474474
/// Instances of this type are acquired by calling
475475
/// [`JsonOptions::as_formatter()`].
476-
pub type JsonFormatter<'a> = internal::JsonFormatterBase<internal::JsonOptionsRef<'a>>;
476+
pub type JsonFormatter<'a> = internal::JsonFormatterBase<internal::JsonOpts<'a>>;
477477

478478
/// Error returned when an invalid string is passed to certain [`JsonOptions`]
479479
/// methods.

0 commit comments

Comments
 (0)