Skip to content

Commit

Permalink
Disable docstests
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Jul 13, 2023
1 parent 85e679a commit c916f03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
format_code_in_doc_comments = true
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl<'a> DerefMut for Dnd<'a> {
/// Use either [Dnd::show] or [Dnd::show_vec] to display the drag and drop UI.
/// You can use [DragDropUi::with_mouse_config] or [DragDropUi::with_touch_config] to configure the drag detection.
/// Example usage:
/// ```rust
/// ```rust;no_run
/// use std::hash::Hash;
/// use eframe::egui;
/// use egui::CentralPanel;
Expand All @@ -106,7 +106,6 @@ impl<'a> DerefMut for Dnd<'a> {
/// });
/// })
/// }
///
/// ```
pub fn dnd(ui: &mut egui::Ui, id_source: impl Hash) -> Dnd {
let id = Id::new(id_source).with("dnd");
Expand Down
2 changes: 1 addition & 1 deletion src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ impl DragDropConfig {

/// [DragDropUi] stores the state of the Drag & Drop list.
/// # Example
/// ```rust
/// ```rust;no_run
/// use egui_dnd::DragDropUi;
/// use eframe::App;
/// use eframe::egui::Context;
Expand Down

0 comments on commit c916f03

Please sign in to comment.