We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 329efc4 + 847daa6 commit e40c431Copy full SHA for e40c431
1 file changed
libsql/src/database/builder.rs
@@ -367,9 +367,7 @@ cfg_replication! {
367
.build::<_, hyper::Body>(connector.clone());
368
369
let prefix = if url.starts_with("libsql://") {
370
- let mut result = "https://".to_string();
371
- result.push_str(&url["libsql://".len()..]);
372
- result
+ url.replacen("libsql://", "https://", 1)
373
} else {
374
url.to_string()
375
};
0 commit comments