We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d42e05a commit 847daa6Copy full SHA for 847daa6
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