update project name

This commit is contained in:
2025-08-15 14:18:01 +02:00
parent aca609bbb0
commit ed6cfebed7
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
[package]
name = "term_snake"
name = "term-snake"
version = "0.1.0"
edition = "2021"

View File

@@ -111,7 +111,7 @@ fn change_dir(direction: &mut Direction, now: &Instant) {
fn key_input(now: &Instant) -> Option<char> {
while now.elapsed() < FRAME_TIME {
if poll(Duration::from_secs(0)).ok()? {
if poll(Duration::MAX).ok()? {
if let Event::Key(k) = read().ok()? {
if let KeyCode::Char(c) = k.code {
return Some(c);