alacritty / alacritty/copypasta

if target_os = "emscripten" ClipboardContext is not defined and not set to NopClipboardContext;

オープン
#82 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Rust
スター
350
フォーク
39
PR マージ指標
30日以内にマージされた PR はありません

説明

I would be fine for it getting set to Nop, getting the clipboard works very differently in wasm/emscripten and very much out of this scope having to cross the JS/FFI boundary without web-sys available and getting navigator.clipboard.

But, it doesnt get defined at all and that makes the compiler unhappy.

#[cfg(not(any(
unix,
windows,
target_os = "macos",
target_os = "android",
target_os = "ios",
target_os = "emscripten"
)))]
pub type ClipboardContext = nop_clipboard::NopClipboardContext;

I think the condition is mixed up here.

Add this before please (under the TODOs for android and ios)
#[cfg(target_os = "emscripten")]
pub type ClipboardContext = nop_clipboard::NopClipboardContext;

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。