Skip to content

Commit 881a2e0

Browse files
authored
refactor: upgrade from deprecated string_capacity to capacity_builder crate (#302)
1 parent 93ffc63 commit 881a2e0

File tree

3 files changed

+23
-12
lines changed

3 files changed

+23
-12
lines changed

Cargo.lock

Lines changed: 21 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ visit = ["swc_ecma_visit", "swc_visit", "swc_visit_macros", "swc_macros_common"]
3333

3434
[dependencies]
3535
base64 = { version = "0.22.1", optional = true }
36+
capacity_builder = "0.5.0"
3637
deno_media_type = "0.2.8"
3738
deno_terminal = "0.2.2"
3839
deno_error = "0.5.6"
@@ -78,7 +79,6 @@ swc_visit = { version = "=2.0.0", optional = true }
7879
swc_visit_macros = { version = "=0.5.13", optional = true }
7980
# just for error handling
8081
sourcemap = { version = "9.1.2", optional = true }
81-
string_capacity = "0.1.5"
8282
thiserror = "2.0.12"
8383

8484
[dev-dependencies]

src/text_changes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::cmp::Ordering;
44
use std::ops::Range;
55

6-
use string_capacity::StringBuilder;
6+
use capacity_builder::StringBuilder;
77

88
#[derive(Clone, Debug)]
99
pub struct TextChange {

0 commit comments

Comments
 (0)