missed a case that is in hosted mode

This commit is contained in:
bunnie 2024-09-23 01:16:59 +08:00
parent 44b9041d0d
commit 5973e48bf4

View file

@ -200,7 +200,7 @@ fn clifford() -> Img {
Img::new(buf, WIDTH.try_into().unwrap(), PixelType::U8)
}
fn test_validator(input: TextEntryPayload) -> Option<String> {
fn test_validator(input: &TextEntryPayload) -> Option<String> {
let text_str = input.as_str();
match text_str.parse::<u32>() {
Ok(_input_int) => None,