mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-12 13:16:22 +02:00
style(902): Fix clippy complaining about cast
Some checks failed
Documentation / Build and Deploy Documentation (push) Has been skipped
Checks / Prefligit / prefligit (push) Failing after 1s
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Checks / Rust / Format (push) Failing after 3s
Checks / Rust / Clippy (push) Failing after 10s
Checks / Rust / Cargo Test (push) Failing after 11s
Some checks failed
Documentation / Build and Deploy Documentation (push) Has been skipped
Checks / Prefligit / prefligit (push) Failing after 1s
Release Docker Image / define-variables (push) Failing after 1s
Release Docker Image / build-image (linux/amd64, release, linux-amd64, base) (push) Has been skipped
Release Docker Image / build-image (linux/arm64, release, linux-arm64, base) (push) Has been skipped
Release Docker Image / merge (push) Has been skipped
Checks / Rust / Format (push) Failing after 3s
Checks / Rust / Clippy (push) Failing after 10s
Checks / Rust / Cargo Test (push) Failing after 11s
This commit is contained in:
parent
7b60f5368d
commit
ce84c46459
1 changed files with 2 additions and 1 deletions
|
@ -178,9 +178,10 @@ impl Service {
|
||||||
.text_to_file(message_content.body())
|
.text_to_file(message_content.body())
|
||||||
.await
|
.await
|
||||||
.expect("failed to create text file");
|
.expect("failed to create text file");
|
||||||
|
let size_u64: u64 = message_content.body().len().try_into().map_or(0, |n| n);
|
||||||
let metadata = FileInfo {
|
let metadata = FileInfo {
|
||||||
mimetype: Some("text/markdown".to_owned()),
|
mimetype: Some("text/markdown".to_owned()),
|
||||||
size: Some(UInt::new_saturating(message_content.body().len() as u64)),
|
size: Some(UInt::new_saturating(size_u64)),
|
||||||
thumbnail_info: None,
|
thumbnail_info: None,
|
||||||
thumbnail_source: None,
|
thumbnail_source: None,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue