This commit is contained in:
Andras Schmelczer 2025-08-17 16:50:53 +01:00
parent 8442520ce3
commit fc4ddb8f1f
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
4 changed files with 4 additions and 5 deletions

View file

@ -25,8 +25,7 @@ jobs:
- name: Setup rust
run: |
rustup install 1.89
rustup default 1.89
rustup update
cargo install sqlx-cli cargo-machete
cd sync-server
sqlx database create --database-url sqlite://db.sqlite3

View file

@ -1,4 +1,4 @@
[toolchain]
channel = "1.89.0"
channel = "nightly"
targets = [ "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl" ]
profile = "default"

View file

@ -47,7 +47,7 @@ impl Cursors {
all_device_cursors.retain(|c| &c.client_cursors.device_id != device_id);
all_device_cursors.push(ClientCursorsWithTimeToLive::new(ClientCursors {
user_name,
device_id: device_id.to_string(),
device_id: device_id.clone(),
documents_with_cursors: document_to_cursors,
}));

View file

@ -26,7 +26,7 @@ impl Header for DeviceIdHeader {
where
E: Extend<HeaderValue>,
{
let value = HeaderValue::from_static(Box::leak(self.0.to_string().into_boxed_str()));
let value = HeaderValue::from_static(Box::leak(self.0.clone().into_boxed_str()));
values.extend(std::iter::once(value));
}