Skip to content

Commit

Permalink
Merge branch 'main' into add-morphing
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Apr 20, 2024
2 parents 6f86e8a + 7afc276 commit cfe60f0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion crates/voicevox_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,8 @@ humansize.workspace = true
windows = { workspace = true, features = ["Win32_Foundation", "Win32_Graphics_Dxgi"] }

[lints.rust]
unsafe_code = "deny" # FIXME: あまり意味が無くなっているため潔く`allow`にする。あるいはunsafeを撲滅する
# FIXME: `unsafe impl Send`のもあるが、以下2つのマージにより消える予定
# * https://github.com/VOICEVOX/voicevox_core/pull/725
# * https://github.com/VOICEVOX/voicevox_core/pull/772
unsafe_code = "allow" # WindowsのGPU情報表示に、Win32を利用
rust_2018_idioms = "warn"
1 change: 0 additions & 1 deletion crates/voicevox_core/src/engine/open_jtalk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ pub(crate) mod blocking {
}

// FIXME: open_jtalk-rs側で宣言する
#[allow(unsafe_code)]
unsafe impl Send for Resources {}
}

Expand Down
1 change: 0 additions & 1 deletion crates/voicevox_core/src/infer/runtimes/onnxruntime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,5 @@ mod assert_send {
}

// SAFETY: `Session` is probably "send"able.
#[allow(unsafe_code)]
unsafe impl<T> Send for AssertSend<T> {}
}
1 change: 0 additions & 1 deletion crates/voicevox_core/src/synthesizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1011,7 +1011,6 @@ pub(crate) mod blocking {
}

fn list_windows_video_cards() -> windows::core::Result<Vec<DXGI_ADAPTER_DESC>> {
#[allow(unsafe_code)]
unsafe {
let factory = CreateDXGIFactory::<IDXGIFactory>()?;
(0..)
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.77.1
1.77.2

0 comments on commit cfe60f0

Please sign in to comment.