Skip to content

Commit c203838

Browse files
Fixup
1 parent d38220f commit c203838

File tree

3 files changed

+6
-6
lines changed
  • node-graph

3 files changed

+6
-6
lines changed

node-graph/graph-craft/src/application_io/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ impl WasmApplicationIo {
2323
let request_adapter = || {
2424
let request_adapter = js_sys::Reflect::get(&gpu, &wasm_bindgen::JsValue::from_str("requestAdapter")).ok()?;
2525
let function = request_adapter.dyn_ref::<js_sys::Function>()?;
26-
Some(function.call0(&gpu).ok())
26+
function.call0(&gpu).ok()
2727
};
2828
let result = request_adapter();
2929
match result {

node-graph/libraries/application-io/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ impl GetEditorPreferences for DummyPreferences {
134134
}
135135

136136
pub struct EditorApi<Io> {
137-
/// Font data (for rendering text) made available to the graph through the [`PlatformEditorApi`].
137+
/// Font data (for rendering text) made available to the graph through the `PlatformEditorApi`.
138138
pub font_cache: FontCache,
139139
/// Gives access to APIs like a rendering surface (native window handle or HTML5 canvas) and WGPU (which becomes WebGPU on web).
140140
pub application_io: Option<Arc<Io>>,
141141
pub node_graph_message_sender: Box<dyn NodeGraphUpdateSender + Send + Sync>,
142-
/// Editor preferences made available to the graph through the [`PlatformEditorApi`].
142+
/// Editor preferences made available to the graph through the `PlatformEditorApi`.
143143
pub editor_preferences: Box<dyn GetEditorPreferences + Send + Sync>,
144144
}
145145

node-graph/libraries/canvas-utils/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
///! A collection of utilities for working with the HTML canvases.
2-
///! This library is designed to be used in a WebAssembly context.
3-
///! It doesn't expose any functionality when compiled for non-WebAssembly targets
1+
//! A collection of utilities for working with HTML canvases.
2+
//! This library is designed to be used in a WebAssembly context.
3+
//! It doesn't expose any functionality when compiled for non-WebAssembly targets
44
55
#[cfg(target_family = "wasm")]
66
mod wasm;

0 commit comments

Comments
 (0)