1 // rustfmt-fn_call_style: Block
16 let hyper = Arc::new(Client::with_connector(
17 HttpsConnector::new(TlsClient::new()),
21 let x = yooooooooooooo
23 .baaaaaaaaaaaaar(hello, world);
28 let creds = self.client
29 .client_credentials(&self.config.auth.oauth2.id, &self.config.auth.oauth2.secret)?;
33 // nesting macro and function call
35 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
36 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
39 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx,
40 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
46 fn map_pixel_to_coords(&self, point: &Vector2i, view: &View) -> Vector2f {
48 Vector2f::from_raw(ffi::sfRenderTexture_mapPixelToCoords(
67 fn query(conn: &Connection) -> Result<()> {
87 fn future_rayon_wait_1_thread() {
88 // run with only 1 worker thread; this would deadlock if we couldn't make progress
89 let mut result = None;
90 ThreadPool::new(Configuration::new().num_threads(1))
94 use std::sync::mpsc::channel;
95 let (tx, rx) = channel();
96 let a = s.spawn_future(lazy(move || Ok::<usize, ()>(rx.recv().unwrap())));
97 // ^^^^ FIXME: why is this needed?
98 let b = s.spawn_future(a.map(|v| v + 1));
99 let c = s.spawn_future(b.map(|v| v + 1));
100 s.spawn(move |_| tx.send(20).unwrap());
101 result = Some(c.rayon_wait().unwrap());
104 assert_eq!(result, Some(22));
113 let n: c_int = unsafe { clang_Cursor_getNumTemplateArguments(self.x) };
118 debug_assert_eq!(n, -1);
123 let canonical = self.canonical();
124 if canonical != *self {
125 canonical.num_template_args()
134 bootstrap.checks.register("PERSISTED_LOCATIONS", move || {
135 if locations2.0.inner_mut.lock().poisoned {
138 "Persisted location storage is poisoned due to a write failure",
141 Check::new(State::Healthy, "Persisted location storage is healthy")
148 let type_list: Vec<_> =
149 try_opt!(types.iter().map(|ty| ty.rewrite(context, shape)).collect());