mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Fix a lot of Clippy warnings (#1808)
* fix a lot of clippy warnings * fix more clippy warnings * fix yet more clippy warnings * bump msrv to 1.70.0 to silence warnings * fix a lot of clippy warnings * fix more clippy warnings * fix yet more clippy warnings * fix a few more warnings * fix a clippy warning * remove a commented out line * silense too many arguments error * fix more clippy warnings * prefix underscore to unused vars/functions to fix warnings * use filter instead of map * move raw-rs-tests feature flat to module level to fix unused imports warnings * fix a couple of unused result warnings --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -287,11 +287,11 @@ impl NodeRuntime {
|
||||
|
||||
let introspected_data_output = introspected_data
|
||||
.downcast_ref::<IORecord<Footprint, graphene_core::GraphicElement>>()
|
||||
.and_then(|io_data| Some(IntrospectedData::GraphicElement(&io_data.output)))
|
||||
.map(|io_data| IntrospectedData::GraphicElement(&io_data.output))
|
||||
.or_else(|| {
|
||||
introspected_data
|
||||
.downcast_ref::<IORecord<Footprint, graphene_core::Artboard>>()
|
||||
.and_then(|io_data| Some(IntrospectedData::Artboard(&io_data.output)))
|
||||
.map(|io_data| IntrospectedData::Artboard(&io_data.output))
|
||||
});
|
||||
|
||||
let graphic_element = match introspected_data_output {
|
||||
|
||||
Reference in New Issue
Block a user