summaryrefslogtreecommitdiff
path: root/src/font.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-07 19:28:34 +0200
commit13230db68c3cb2842f23f95fc1b47fd989e6277d (patch)
treeb0bf94a8e3f935a7e9076237783846dee14e3e81 /src/font.rs
parentd2e220245d9c17a0ac8c3474984924f65ed6b835 (diff)
Fix some clippy warnings ✔
Diffstat (limited to 'src/font.rs')
-rw-r--r--src/font.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/font.rs b/src/font.rs
index 539f3188..9901ff1c 100644
--- a/src/font.rs
+++ b/src/font.rs
@@ -23,7 +23,7 @@ pub struct OwnedFace {
impl OwnedFace {
/// Get a reference to the underlying face.
- pub fn get<'a>(&'a self) -> &'a Face<'a> {
+ pub fn get(&self) -> &Face<'_> {
// We can't implement Deref because that would leak the internal 'static
// lifetime.
&self.face