Skip to content

Instantly share code, notes, and snippets.

@apiraino apiraino/test.rs
Last active Oct 19, 2018

Embed
What would you like to do?
struct Foo {}
impl Bar for Foo {
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
fn dummy_spacer() -> bool {
false
}
// 1) place cursor here
// 2) center file on cursor (C-l)
// 3) reformat the function moving "param1: String," next to "&self"
/*
fn test_function(
&self, param1: String,
param2: String,
param3: String,
param4: String,
...
*/
// 4) save file
fn test_function(
&self,
param1: String,
param2: String,
param3: String,
param4: String,
) -> bool {
false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.