Skip to content

Commit ac5bd4b

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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)

Diff for: src/web/rustdoc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ pub fn rustdoc_html_server_handler(req: &mut Request) -> IronResult<Response> {
427427
.recently_accessed_releases
428428
.record(krate.crate_id, krate.release_id, target);
429429

430-
let target = if target == "" {
430+
let target = if target.is_empty() {
431431
String::new()
432432
} else {
433433
format!("{}/", target)

0 commit comments

Comments
 (0)