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

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatFrogDev committed Mar 12, 2024
1 parent b9ef354 commit efe2a69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/utilities/display.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use crate::note::Note;
use crate::utilities::format_md::{inline, paragraph};
use std::io::{self, Write};
use termimad::*;
use crate::note::Note;
use crate::utilities::format_md::{paragraph, inline};

pub fn display(note: &Note) -> Result<(), Box<dyn std::error::Error>> {
let skin: MadSkin = MadSkin::default();
Expand All @@ -20,4 +20,4 @@ pub fn display(note: &Note) -> Result<(), Box<dyn std::error::Error>> {
io::stdout().flush()?;

Ok(())
}
}
6 changes: 3 additions & 3 deletions src/utilities/format_md.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
use termimad::*;

pub fn paragraph<'sk, 'st>(skin: &'sk MadSkin, string: &'st str) -> FmtText<'sk, 'st> {
return skin.text(string, None)
return skin.text(string, None);
}

pub fn inline<'sk, 'st>(skin: &'sk MadSkin, string: &'st str) -> FmtInline<'sk, 'st> {
return skin.inline(string);
}
return skin.inline(string);
}

0 comments on commit efe2a69

Please sign in to comment.