From 00dd417e3d0c3d76156b39beffa4b38b969f50ec Mon Sep 17 00:00:00 2001 From: Astrale Date: Wed, 17 Jan 2024 17:31:30 +0100 Subject: [PATCH] fmt --- src/lib.rs | 4 ++-- src/writer.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 178cda2..4721707 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -13,12 +13,12 @@ mod config; /// Our format tree, that we will visit in order to format the code. mod node; /// Special operation applied to our tree to take care of giving commands via -/// Typst's comments. +/// Typst's comments. mod preserve_pass; mod utils; /// Here lies the formatting logic mod visits; -/// Handles writing to an output, indentation as a post_process, +/// Handles writing to an output, indentation as a post_process, /// rewinding if things some condition was not respected. mod writer; diff --git a/src/writer.rs b/src/writer.rs index 27bbb39..777d3da 100644 --- a/src/writer.rs +++ b/src/writer.rs @@ -12,7 +12,7 @@ use std::{ /// - Markers: you place a mark by calling [Writer::mark], you can use this mark /// to jump back and redo your formatting should you see it didn't respect some rules. /// - Todo: rewinding, go back to a position, removing all markers that were introduced after -/// as well as resetting the result to it's past state. +/// as well as resetting the result to it's past state. /// Example : /// ```ignore /// fn visit_params(/* */) { @@ -153,7 +153,6 @@ impl<'a> Writer<'a> { *self.buffer = res; } - pub(crate) fn push_str(&mut self, s: &str) { self.buffer.push_str(s) }