clippy: make it happier
This commit is contained in:
1 parent
4edaeb0aae
commit
dc028df0dd
2 files changed
+1
-10
No files matched your search
@@ -106,7 +106,7 @@ pub fn Link<'a>(cx: Scope<'a, LinkProps<'a>>) -> Element {
|
||||
Some(service) => service.cfg.active_class.clone(),
|
||||
None => None,
|
||||
};
|
||||
active_from_router.unwrap_or("active".into())
|
||||
active_from_router.unwrap_or_else(|| "active".into())
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user