Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
astrale-sharp committed Jan 17, 2024
1 parent 061f6a6 commit 00dd417
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
3 changes: 1 addition & 2 deletions src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(/* */) {
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 00dd417

Please sign in to comment.