avatarBruce Coulter

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

949

Abstract

fix</pre></div><p id="8b9e">It will add underscore in front of variable a:</p><div id="39a9"><pre><span class="hljs-function">fn <span class="hljs-title">main</span>()</span> { <span class="hljs-keyword">let</span> _a = <span class="hljs-number">10</span>; }</pre></div><p id="7e4e">3 Clippy:</p><p id="9809">We can use it to catch common mistakes and improve your Rust code.</p><p id="1e04">To install clippy , by running:</p><div id="bb1c"><pre>rustup component <span class="hljs-keyword">add</span> clippy</pre></div><p id="3a18">Like we want to use PI value,</p><div id="7232"><pre><span class="hljs-function">fn <span class="hljs-title">main</span>()</span> { <span class="hljs-keyword">let</span> a = <span class="hljs-number">3.14</span>; <span class="hljs-keyword">let</span> b = <span class="hljs-number">2.0</span>; println!(<span class="hljs-string">"{}"</span>, a * b); }</pre></div><p id="d264">We run :</p><div id="58e4

Options

"><pre>cargo clippy</pre></div><p id="d654">It will tell us to use PI defined in standard library for more precise.</p><p id="f193">So we can change our code to :</p><div id="b409"><pre><span class="hljs-keyword">use</span> std::<span class="hljs-type">f32</span>::consts::PI;

<span class="hljs-keyword">fn</span> <span class="hljs-title function_">main</span>() { <span class="hljs-keyword">let</span> <span class="hljs-variable">a</span> = PI; <span class="hljs-keyword">let</span> <span class="hljs-variable">b</span> = <span class="hljs-number">2.0</span>; <span class="hljs-built_in">println!</span>(<span class="hljs-string">"{}"</span>, a * b); }</pre></div><p id="416f">4 rust-analyzer</p><p id="a872">It’s an extension, we can install it by searching rust-analyzer in extensions in vs code. It will make vs code gain abilities such as type definition, code completion, syntax highlighting and inline errors.</p></article></body>

THIS OR THAT CHALLENGE

I Look Better in a Black Cocktail Dress Than My Cousin

BJ’s This or That: Galentine’s Day Challenge (For Francophiles)

Not the author, if I need to make that clear. Photo by Raamin ka on Unsplash

This Galentine’s Day This or That was written in response to Brett Jenae Tomlin’s challenge, so visit her page if you’d like to participate.

1 Saturday or Sunday? Once upon a time, I would say Saturday. At this point in my life, I can enjoy both days. My days of watching cartoons on a Saturday morning are fun memories, but I don’t even have cable.

2 Pain Au Chocolat or Almond Croissant? I commented on Brandon Ellrich’s ToT about this. I prefer almond croissants, preferably with a hot cup of java. But hot chocolate wouldn’t be a bad choice.

3 Glass or Bottle? If we’re talking about beer or water, I’ll drink from the bottle. Alcohol or white wine — from the glass, please.

4 Skirt or Pants? I look better in a black cocktail dress than my very, very distant cousin Ann. Yeah, that one. That said, pants, please.

5 Coat or Jacket? That depends on the weather. It was 13 below this morning. You bet your ass I wore a coat.

6 Walking or Biking? I’ve always been a walker, usually with a backpack full of camera gear. I can go eight or nine miles on foot with no problems. A bicycle wears my ass out after three or four miles.

7 Clouds or Stars? I’m a landscape photographer, so both work for me. I do, however, prefer clouds. Completely blue skies usually make a landscape photo look flat.

8 Crepes or Quiche? I’ve had both, but I can’t say I’m a fan of quiche. Crepes can offer a sweet or savory taste.

9 Blanket or Throw? I have to go with a blanket. If I’m cold, I’m cold. Of course, I have to stick a foot (or two) out from under the covers.

10 Paper or Cloth? Is this a writer’s choice? I’m going with paper money (cash is king, baby) and a cloth fanny pack to stash my cash.

11 Piano or Saxophone? Sadly, I don’t play any instruments. I had the violin forced on me in elementary school. I wish I’d continued playing it. I might have learned to play other instruments.

12 Lemon or Lavender? Lemon. Period.

Still life portrait of two daisies. © Bruce Coulter Photography

13 Artist or Creative? I’m a landscape photographer. I also shoot still-life photos. I qualify as both.

14 Pink or Blue? Blue has always been my favorite color. It has nothing to do with my gender.

15 Candles or Mugs? I have a “Christmas Eve” scented Yankee Candle burning as I drink java from my favorite coffee mug. Yankee Candle Village is about an hour west of me. My daughter and I visit every other month. It’s far enough away to make it feel special when we visit. And yeah, I love the candles.

16 Scarves or Sweaters? Scarves so that I can look suave and sophisticated. If you’re reading this, you should be calling BS on me right about now.

17 Tidy or Messy? Admittedly, a little of both. That said, I hate a dirty kitchen. I was a chef in another life, so the rule of clean as you go is big with me.

18 Cooking or Baking? Cooking. I suck at baking. Fortunately, my daughter is quite good at baking.

19 Flirty or Fun? I’m about as flirty as an introvert can be. But if you put me in a corner at a party, I’ll be happy. I will, however, flirt online.

20 Rays of Sunshine or Twinkling Lights? I’d love to say rays of sunshine, but that’s the photographer in me. Rays of sunshine usually mean warm or hot weather. I loathe hot weather. So twinkle, twinkle, little light works for me.

If you’ve read this far, thank you for stopping by. Lay 50 claps on me and comment if you would please. I will return the favor. Cheers!

I accept tips, which go directly to Dining for Hunger, a recognized 501(c)(3) organization that looks to end food insecurity. If you can spare a dollar or two, I’d be grateful.

More stories from Bruce Coulter.

Bjs This Or That
Cocktail Dresses
Humor
Yankee Candle
Flirting
Recommended from ReadMedium
avatarChris D (Bigdreamsstudios)
About Me

10 uninteresting facts about me:

2 min read