Skip to content

Commit 847daa6

Browse files
authored
refactor(builder): remove mut usage
1 parent d42e05a commit 847daa6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

libsql/src/database/builder.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,7 @@ cfg_replication! {
367367
.build::<_, hyper::Body>(connector.clone());
368368

369369
let prefix = if url.starts_with("libsql://") {
370-
let mut result = "https://".to_string();
371-
result.push_str(&url["libsql://".len()..]);
372-
result
370+
url.replacen("libsql://", "https://", 1)
373371
} else {
374372
url.to_string()
375373
};

0 commit comments

Comments
 (0)