mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 00:56:14 +00:00
31 lines
630 B
Rust
31 lines
630 B
Rust
// rustfmt-fn_call_style: Block
|
|
// Function call style
|
|
|
|
fn main() {
|
|
lorem(
|
|
"lorem",
|
|
"ipsum",
|
|
"dolor",
|
|
"sit",
|
|
"amet",
|
|
"consectetur",
|
|
"adipiscing",
|
|
"elit",
|
|
);
|
|
// #1501
|
|
let hyper = Arc::new(
|
|
Client::with_connector(HttpsConnector::new(TlsClient::new())),
|
|
);
|
|
}
|
|
|
|
// #1521
|
|
impl Foo {
|
|
fn map_pixel_to_coords(&self, point: &Vector2i, view: &View) -> Vector2f {
|
|
unsafe {
|
|
Vector2f::from_raw(
|
|
ffi::sfRenderTexture_mapPixelToCoords(self.render_texture, point.raw(), view.raw()),
|
|
)
|
|
}
|
|
}
|
|
}
|