mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-27 10:18:30 +00:00
style(902): Fix clippy complaining about cast
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())
|
||||
.await
|
||||
.expect("failed to create text file");
|
||||
let size_u64: u64 = message_content.body().len().try_into().map_or(0, |n| n);
|
||||
let metadata = FileInfo {
|
||||
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_source: None,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue