Skip to content

Commit 3026212

Browse files
committed
fix new clippy warnings
1 parent bf8bfe7 commit 3026212

File tree

1 file changed

+1
-1
lines changed
  • crates/font-awesome-as-a-crate/src

1 file changed

+1
-1
lines changed

Diff for: crates/font-awesome-as-a-crate/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Get a fontawesome svg file by its name.
8181
*/
8282
pub fn svg(type_: Type, name: &str) -> Result<&'static str, NameError> {
8383
let svg = fontawesome_svg(type_.as_str(), name);
84-
if svg == "" {
84+
if svg.is_empty() {
8585
return Err(NameError);
8686
}
8787
Ok(svg)

0 commit comments

Comments
 (0)