]> git.lizzy.rs Git - rust.git/commitdiff
Better naming post copy/paste
authorDaniel Smith <daniel.smith@datadoghq.com>
Mon, 28 Sep 2020 16:57:18 +0000 (12:57 -0400)
committerDaniel Smith <daniel.smith@datadoghq.com>
Wed, 21 Oct 2020 15:04:26 +0000 (11:04 -0400)
tests/ui/await_holding_refcell_ref.rs

index 8e30da85d1410f9a0687443a1dd812ca764ac0ed..dd3adc494f1be22b7f58945a76f7711c5a43039d 100644 (file)
@@ -61,11 +61,11 @@ fn block_bad(x: &RefCell<u32>) -> impl std::future::Future<Output = u32> + '_ {
 }
 
 fn main() {
-    let m = RefCell::new(100);
-    good(&m);
-    bad(&m);
-    bad_mut(&m);
-    also_bad(&m);
-    not_good(&m);
-    block_bad(&m);
+    let rc = RefCell::new(100);
+    good(&rc);
+    bad(&rc);
+    bad_mut(&rc);
+    also_bad(&rc);
+    not_good(&rc);
+    block_bad(&rc);
 }