Skip to content

Commit e40c431

Browse files
authored
Merge pull request tursodatabase#1972 from scarf005/patch-1
refactor(builder): remove mut usage
2 parents 329efc4 + 847daa6 commit e40c431

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)