File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
graph-craft/src/application_io Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -134,12 +134,12 @@ impl GetEditorPreferences for DummyPreferences {
134134}
135135
136136pub 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
Original file line number Diff line number Diff line change 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" ) ]
66mod wasm;
You can’t perform that action at this time.
0 commit comments