Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
lampsitter committed Sep 2, 2023
1 parent 4ebb900 commit 238bddd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ fetch = ["ehttp", "url", "image/jpeg"]
eframe = { git = "https://github.com/emilk/egui", rev = "2c7c598" }

[package.metadata.docs.rs]
features = ["syntax_highlighting", "svg", "document-features"]
features = ["syntax_highlighting", "svg"]
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ impl CommonMarkViewerInternal {
}
}

fn style_text(&mut self, ui: &mut Ui, text: &str) -> RichText {
fn style_text(&mut self, ui: &Ui, text: &str) -> RichText {
let mut text = RichText::new(text);

if let Some(level) = self.text_style.heading {
Expand Down Expand Up @@ -994,7 +994,7 @@ impl CommonMarkViewerInternal {
}
}

fn start_image(&mut self, url: String, ui: &mut Ui, cache: &mut CommonMarkCache) {
fn start_image(&mut self, url: String, ui: &Ui, cache: &CommonMarkCache) {
let handle = cache.images.lock().load(ui.ctx(), url.clone());

self.image = Some(Image {
Expand Down

0 comments on commit 238bddd

Please sign in to comment.