]> git.lizzy.rs Git - rust.git/blob - tests/target/configs-fn_call_style-block.rs
Merge pull request #1510 from fintelia/better-filelines
[rust.git] / tests / target / configs-fn_call_style-block.rs
1 // rustfmt-fn_call_style: Block
2 // Function call style
3
4 fn main() {
5     lorem(
6         "lorem",
7         "ipsum",
8         "dolor",
9         "sit",
10         "amet",
11         "consectetur",
12         "adipiscing",
13         "elit",
14     );
15     // #1501
16     let hyper = Arc::new(
17         Client::with_connector(HttpsConnector::new(TlsClient::new())),
18     );
19 }
20
21 // #1521
22 impl Foo {
23     fn map_pixel_to_coords(&self, point: &Vector2i, view: &View) -> Vector2f {
24         unsafe {
25             Vector2f::from_raw(
26                 ffi::sfRenderTexture_mapPixelToCoords(self.render_texture, point.raw(), view.raw()),
27             )
28         }
29     }
30 }