Skip to content

Fix warning#1428

Open
muzudho wants to merge 3 commits intoPistonDevelopers:masterfrom
muzudho:practice-conrod
Open

Fix warning#1428
muzudho wants to merge 3 commits intoPistonDevelopers:masterfrom
muzudho:practice-conrod

Conversation

@muzudho
Copy link
Copy Markdown

@muzudho muzudho commented Jun 23, 2021

warning: anonymous parameters are deprecated and will be removed in the next edition.

muzudho added 3 commits June 24, 2021 01:04
warning: anonymous parameters are deprecated and will be removed in the next edition.
warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()
warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string()

warning: unused variable
Copy link
Copy Markdown
Contributor

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Just one small change/question then I think this is good to land.

RendererCreationError::PipelineState(ref e) => std::error::Error::description(e),
}
}
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we leave the std::error::Error implementations and only remove the inner description methods instead? Otherwise I think we might break some downstream crates that rely on these error types implementing the std::error::Error trait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants