Skip to content

Commit c30c7ad

Browse files
committed
refac: remove dbg
1 parent 4359e3b commit c30c7ad

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "json_string"
3-
version = "0.1.12"
3+
version = "0.1.14"
44
edition = "2021"
55
description = "Format JSON string so that `serde_json` can understand it."
66
keywords = ["serde", "string", "json"]

src/public/prepare_json_string.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,14 @@ pub fn prepare_json_string(original_str: &str) -> String {
1212

1313
let json_context = json_context(trimmed_str);
1414

15-
dbg!(&json_context);
16-
1715
let content_str = content_str(json_context.clone(), trimmed_str);
18-
dbg!(&content_str);
16+
1917
let content_str = content_str
2018
.trim_matches([' ', '\n', '\t', ',', ';', ':'])
2119
.trim_start_matches("\\\\n")
2220
.trim_end_matches("\\\\n")
2321
.to_string();
2422

25-
dbg!(&content_str);
26-
2723
let parsed_json_string = parse_json_string(&content_str, json_context.clone());
2824

2925
let rewrapped_string = rewrap_string(&parsed_json_string, json_context);

0 commit comments

Comments
 (0)