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

Commit

Permalink
Remove unused code and fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Enter-tainer committed Nov 23, 2023
1 parent 57ee501 commit 4c3532f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/actor/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ impl RenderActor {
pub struct OutlineRenderActor {
signal: mpsc::UnboundedReceiver<()>,
document: watch::Receiver<Option<Arc<Document>>>,
renderer: IncrSvgDocServer,
outline_sender: mpsc::UnboundedSender<Outline>,
}

Expand All @@ -97,14 +96,11 @@ impl OutlineRenderActor {
document: watch::Receiver<Option<Arc<Document>>>,
outline_sender: mpsc::UnboundedSender<Outline>,
) -> Self {
let mut res = Self {
Self {
signal,
document,
renderer: IncrSvgDocServer::default(),
outline_sender,
};
res.renderer.set_should_attach_debug_info(true);
res
}
}

pub fn run(mut self) {
Expand Down
4 changes: 3 additions & 1 deletion src/actor/typst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ impl<C: Compiler> WrappedCompiler for Reporter<C> {
}

fn wrap_compile(&mut self) -> SourceResult<Arc<Document>> {
let _ = self.sender.send(EditorActorRequest::CompileStatus(CompileStatus::Compiling));
let _ = self
.sender
.send(EditorActorRequest::CompileStatus(CompileStatus::Compiling));
let doc = self.inner_mut().compile();
if let Err(err) = &doc {
let _ = self.sender.send(EditorActorRequest::CompileStatus(
Expand Down

0 comments on commit 4c3532f

Please sign in to comment.