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

Improve let-else formatting #56

Merged
merged 1 commit into from
Jul 20, 2023
Merged

Improve let-else formatting #56

merged 1 commit into from
Jul 20, 2023

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jul 20, 2023

Fixes #55.

The following styles are all mirrored from rustfmt.

impl op_v8_string {
    extern "C" fn v8_fn_ptr(info: *const deno_core::v8::FunctionCallbackInfo) {
        let result = {
            let Ok(arg0) = v8_convert(arg0) else { return };
            let Ok(mut arg0) = deno_core::_ops::v8_try_convert::<T>(arg0) else {
                let mut scope = unsafe { deno_core::v8::CallbackScope::new(&*info) };
                return;
            };
            let Ok(mut arg0) = deno_core::_ops::v8_try_convert::<deno_core::String>(arg0)
            else {
                let mut scope = unsafe { deno_core::v8::CallbackScope::new(&*info) };
                return;
            };
            let Ok(mut arg0) = deno_core::_ops::v8_try_convert::<
                deno_core::v8::String,
            >(arg00000000000000000000000000) else {
                let mut scope = unsafe { deno_core::v8::CallbackScope::new(&*info) };
                return;
            };
        };
    }
}

@dtolnay dtolnay merged commit 0142ff4 into master Jul 20, 2023
17 checks passed
@dtolnay dtolnay deleted the letelse branch July 20, 2023 22:33
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.

Missing indent in let/else formatting
1 participant