Skip to content

Commit 9f7569f

Browse files
fix
1 parent 2ea7358 commit 9f7569f

File tree

1 file changed

+3
-3
lines changed
  • crates/pgt_workspace/src/workspace/server

1 file changed

+3
-3
lines changed

crates/pgt_workspace/src/workspace/server/change.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1292,7 +1292,7 @@ mod tests {
12921292
fn remove_trailing_whitespace() {
12931293
let path = PgTPath::new("test.sql");
12941294

1295-
let mut doc = Document::new(path.clone(), "select * from ".to_string(), 0);
1295+
let mut doc = Document::new("select * from ".to_string(), 0);
12961296

12971297
let change = ChangeFileParams {
12981298
path: path.clone(),
@@ -1338,7 +1338,7 @@ mod tests {
13381338
fn remove_trailing_whitespace_and_last_char() {
13391339
let path = PgTPath::new("test.sql");
13401340

1341-
let mut doc = Document::new(path.clone(), "select * from ".to_string(), 0);
1341+
let mut doc = Document::new("select * from ".to_string(), 0);
13421342

13431343
let change = ChangeFileParams {
13441344
path: path.clone(),
@@ -1384,7 +1384,7 @@ mod tests {
13841384
fn remove_inbetween_whitespace() {
13851385
let path = PgTPath::new("test.sql");
13861386

1387-
let mut doc = Document::new(path.clone(), "select * from users".to_string(), 0);
1387+
let mut doc = Document::new("select * from users".to_string(), 0);
13881388

13891389
let change = ChangeFileParams {
13901390
path: path.clone(),

0 commit comments

Comments
 (0)