Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
voidentente committed Sep 25, 2024
1 parent 4e448e9 commit f664e78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/ser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -503,17 +503,6 @@ impl<W: fmt::Write> Serializer<W> {
Ok(())
}

// fn indent(&mut self) -> fmt::Result {
// if let Some((ref config, ref pretty)) = self.pretty {
// if pretty.indent <= config.depth_limit {
// for _ in 0..pretty.indent {
// self.output.write_str(&config.indentor)?;
// }
// }
// }
// Ok(())
// }

fn end_indent(&mut self) -> fmt::Result {
if let Some((ref config, ref mut pretty)) = self.pretty {
if pretty.indent <= config.depth_limit {
Expand Down
4 changes: 2 additions & 2 deletions src/ser/path_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//! # Example
//!
//! ```
//! # use ron::{ser::{PrettyConfig, path_meta::Field}};
//! # use ron::ser::{PrettyConfig, path_meta::Field};
//!
//! #[derive(serde::Serialize)]
//! struct Creature {
Expand Down Expand Up @@ -92,7 +92,7 @@
//! type Value = (
//! A,
//! // ^
//! // These are different types, but they share two fields with the same path: `buf` and `len`
//! // These are different types, but they share the path `field`
//! // v
//! B,
//! );
Expand Down

0 comments on commit f664e78

Please sign in to comment.