Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overall Clippy related updates #10

Merged
merged 1 commit into from
May 3, 2024
Merged

Overall Clippy related updates #10

merged 1 commit into from
May 3, 2024

Conversation

YigitAras
Copy link
Contributor

Updated parts of the code that Clippy was complaining about. Also moved the destroy function of Context into the Drop trait.

@YigitAras YigitAras requested a review from MarijnS95 May 3, 2024 13:41
@YigitAras YigitAras merged commit f44af14 into main May 3, 2024
4 checks passed
@MarijnS95 MarijnS95 deleted the ci_pass branch May 3, 2024 15:18
}
1 => {
warn!("FSR warning with :\n {:?}", str_msg);
warn!("FidelityFX warning with :\n {:?}", str_msg);
}
2 => {
Copy link
Member

Choose a reason for hiding this comment

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

FFX_MESSAGE_TYPE_COUNT etc

@@ -67,16 +69,16 @@ pub unsafe extern "C" fn msg_callback_func(
match msg_type {
// TODO(YIGIT): Flags are not working here for some reason
Copy link
Member

Choose a reason for hiding this comment

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

Oh err... That's weird it's just a type alias or newtype

@@ -351,6 +354,9 @@ impl From<DispatchDescription<'_>> for fidelityfx_sys::Fsr3DispatchUpscaleDescri
}

impl Context {
/// # Safety
///
/// You must ensure that the parameters of Fsr3ContextCreate are properly provided.
Copy link
Member

Choose a reason for hiding this comment

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

"properly" :)

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