From 8cc0fa397158f04c9a2b1dd29b64f50403fc1826 Mon Sep 17 00:00:00 2001 From: lee-sihun Date: Fri, 6 Nov 2026 15:41:40 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20Rust=20=ED=88=B4=EC=B2=B4=EC=9D=B8?= =?UTF-8?q?=EC=9D=84=201.99.1=EB=A1=9C=20=EC=98=AC=EB=A6=B0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - rust-toolchain.toml 1.93.0 → 1.99.1, rust-version도 1.99로 맞춤 - 1.99 clippy 경고 2건 수정 (fetch_update → try_update, match 가드로 합침) - CI 운영 문서의 Rust 버전 표기 갱신 Co-Authored-By: Claude Opus 5.5 --- docs/ci-operations.md | 2 +- rust-toolchain.toml | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/crates/element-document/Cargo.toml | 2 +- src-tauri/crates/element-document/src/value.rs | 9 +++++---- src-tauri/src/state/app_state/audio_runtime.rs | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/ci-operations.md b/docs/ci-operations.md index a3b7f92c0..407b63849 100644 --- a/docs/ci-operations.md +++ b/docs/ci-operations.md @@ -1,6 +1,6 @@ # CI 운영 안내 -CI는 `.node-version`의 Node 22.23.2와 `rust-toolchain.toml`의 Rust 1.93.0을 사용한다. 로컬 커밋 hook과 브랜치 push에는 검사 통과를 강제하지 않는다. `main` 직접 push도 허용한다. +CI는 `.node-version`의 Node 22.23.2와 `rust-toolchain.toml`의 Rust 1.99.1을 사용한다. 로컬 커밋 hook과 브랜치 push에는 검사 통과를 강제하지 않는다. `main` 직접 push도 허용한다. ## PR 검사 diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 9e8885762..57ef39fe9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.93.0" +channel = "1.99.1" profile = "minimal" components = ["clippy", "rustfmt"] diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 0f6d2f0be..4f0607a31 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -2,7 +2,7 @@ name = "dm-note" version = "2.1.0" edition = "2021" -rust-version = "1.88" +rust-version = "1.99" default-run = "dm-note" [workspace] diff --git a/src-tauri/crates/element-document/Cargo.toml b/src-tauri/crates/element-document/Cargo.toml index bd29cc1d2..5b22ac892 100644 --- a/src-tauri/crates/element-document/Cargo.toml +++ b/src-tauri/crates/element-document/Cargo.toml @@ -2,7 +2,7 @@ name = "element-document" version = "0.1.0" edition = "2021" -rust-version = "1.88" +rust-version = "1.99" publish = false description = "DmNote 요소 문서 엔진 - 트리 문서, 규칙표 검증, 편집 연산, 버전 옮기기" diff --git a/src-tauri/crates/element-document/src/value.rs b/src-tauri/crates/element-document/src/value.rs index 56b1359b9..e86daf77a 100644 --- a/src-tauri/crates/element-document/src/value.rs +++ b/src-tauri/crates/element-document/src/value.rs @@ -333,11 +333,12 @@ impl ValueKind { // 끊긴 참조는 허용한다 - 지운 요소를 가리키는 값(스프라이트 트리거 등)은 옛 계약에서도 정상이고, // 함께 붙이는 대상이 나중에 도착할 수도 있다. 있는 요소의 종류만 본다 None => {} - Some(kind) => { - if !kinds.is_empty() && !kinds.iter().any(|allowed| allowed == kind) { - out.push(Violation::new(ViolationCode::ReferenceWrongKind, path)); - } + Some(kind) + if !kinds.is_empty() && !kinds.iter().any(|allowed| allowed == kind) => + { + out.push(Violation::new(ViolationCode::ReferenceWrongKind, path)); } + Some(_) => {} }, }, ValueKind::List { diff --git a/src-tauri/src/state/app_state/audio_runtime.rs b/src-tauri/src/state/app_state/audio_runtime.rs index 922c26b7f..a24173447 100644 --- a/src-tauri/src/state/app_state/audio_runtime.rs +++ b/src-tauri/src/state/app_state/audio_runtime.rs @@ -27,7 +27,7 @@ impl AppState { pub fn unsubscribe_pointer_input(&self) -> u32 { self.pointer_input_subscribers - .fetch_update(Ordering::SeqCst, Ordering::SeqCst, |count| { + .try_update(Ordering::SeqCst, Ordering::SeqCst, |count| { Some(count.saturating_sub(1)) }) .map_or(0, |previous| previous.saturating_sub(1))