1 // rustfmt-indent_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<()> {
85 fn future_rayon_wait_1_thread() {
86 // run with only 1 worker thread; this would deadlock if we couldn't make progress
87 let mut result = None;
88 ThreadPool::new(Configuration::new().num_threads(1))
92 use std::sync::mpsc::channel;
93 let (tx, rx) = channel();
94 let a = s.spawn_future(lazy(move || Ok::<usize, ()>(rx.recv().unwrap())));
95 // ^^^^ FIXME: why is this needed?
96 let b = s.spawn_future(a.map(|v| v + 1));
97 let c = s.spawn_future(b.map(|v| v + 1));
98 s.spawn(move |_| tx.send(20).unwrap());
99 result = Some(c.rayon_wait().unwrap());
102 assert_eq!(result, Some(22));
111 let n: c_int = unsafe { clang_Cursor_getNumTemplateArguments(self.x) };
116 debug_assert_eq!(n, -1);
121 let canonical = self.canonical();
122 if canonical != *self {
123 canonical.num_template_args()
132 bootstrap.checks.register("PERSISTED_LOCATIONS", move || {
133 if locations2.0.inner_mut.lock().poisoned {
136 "Persisted location storage is poisoned due to a write failure",
139 Check::new(State::Healthy, "Persisted location storage is healthy")
146 let type_list: Vec<_> =
147 try_opt!(types.iter().map(|ty| ty.rewrite(context, shape)).collect());