I&#x27;m not sure why the author kept &amp;*s, I have suggested &amp;s[..] instead (i.e. &quot;take a slice of the whole string&quot;).<p>And .into() seems to be used as a &amp;str -&gt; String (allocating) conversion for brevity only.<p>The more idiomatic form would therefore be:<p><pre><code>  let fname = &amp;env::args().nth(1).unwrap_or(String::from(&quot;&#x2F;usr&#x2F;share&#x2F;dict&#x2F;words&quot;))[..];
</code></pre>
Although I would move the &amp;...[..] slicing to the places where fname is used, which should work fine with &amp;String instead of &amp;str (or automatically coerce to get the latter).