Skip to content

Commit b6ca760

Browse files
committed
fmt
1 parent 099d0d6 commit b6ca760

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

examples/demo/src/apps/custom_input.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use egui::{RichText, Ui};
22
use egui_json_tree::JsonTree;
3-
use serde_json::{json, Value};
3+
use serde_json::{Value, json};
44

55
use super::Show;
66

examples/demo/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use apps::{
2-
copy_to_clipboard::CopyToClipboardExample, custom_input::CustomExample,
2+
Example, Show, copy_to_clipboard::CopyToClipboardExample, custom_input::CustomExample,
33
editor::JsonEditorExample, search::SearchExample,
4-
toggle_buttons::ToggleButtonsCustomisationDemo, wrapping::WrappingExample, Example, Show,
4+
toggle_buttons::ToggleButtonsCustomisationDemo, wrapping::WrappingExample,
55
};
66
use serde_json::json;
77

src/node.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
use std::collections::HashSet;
22

33
use egui::{
4-
collapsing_header::{paint_default_icon, CollapsingState},
54
Id, Ui,
5+
collapsing_header::{CollapsingState, paint_default_icon},
66
};
77

88
use crate::{
9-
delimiters::{SpacingDelimiter, ARRAY_DELIMITERS, OBJECT_DELIMITERS},
9+
DefaultExpand, JsonTree, JsonTreeStyle, ToggleButtonsState,
10+
delimiters::{ARRAY_DELIMITERS, OBJECT_DELIMITERS, SpacingDelimiter},
1011
pointer::{JsonPointer, JsonPointerSegment},
1112
render::{
1213
JsonTreeRenderer, ParentStatus, RenderBaseValueContext, RenderExpandableDelimiterContext,
@@ -15,7 +16,6 @@ use crate::{
1516
response::JsonTreeResponse,
1617
search::SearchTerm,
1718
value::{ExpandableType, JsonTreeValue, ToJsonTreeValue},
18-
DefaultExpand, JsonTree, JsonTreeStyle, ToggleButtonsState,
1919
};
2020

2121
pub(crate) struct JsonTreeNode<'a, 'b, T: ToJsonTreeValue> {

src/response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::collections::HashSet;
22

3-
use egui::{collapsing_header::CollapsingState, Id, Ui};
3+
use egui::{Id, Ui, collapsing_header::CollapsingState};
44

55
/// The response from showing a [`JsonTree`](crate::JsonTree).
66
pub struct JsonTreeResponse {

src/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use egui::{Color32, FontId, TextStyle, Ui};
22

3-
use crate::{render::ParentStatus, value::BaseValueType, ToggleButtonsState};
3+
use crate::{ToggleButtonsState, render::ParentStatus, value::BaseValueType};
44

55
/// Styling configuration to control the appearance of the [`JsonTree`](crate::JsonTree).
66
#[derive(Debug, Clone, Default)]

tests/json_tree_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
use std::sync::Arc;
22

3-
use egui::{mutex::Mutex, CentralPanel, Context, FontDefinitions, Style};
4-
use egui_json_tree::{render::RenderContext, DefaultExpand, JsonTree, JsonTreeStyle};
3+
use egui::{CentralPanel, Context, FontDefinitions, Style, mutex::Mutex};
4+
use egui_json_tree::{DefaultExpand, JsonTree, JsonTreeStyle, render::RenderContext};
55
#[cfg(feature = "serde_json")]
6-
use serde_json::{json, Value};
6+
use serde_json::{Value, json};
77

88
#[cfg(all(feature = "simd_json", not(feature = "serde_json")))]
99
use simd_json::{json, owned::Value};

0 commit comments

Comments
 (0)