Skip to content

Commit a33fb5c

Browse files
committed
fix(location&context): Fix clippy errors
1 parent a4d72e5 commit a33fb5c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/context.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,6 @@ pub unsafe fn from_ptr<'ctx>(ptr: *mut gccjit_sys::gcc_jit_context) -> Context<'
12151215
#[cfg(test)]
12161216
mod tests {
12171217
use super::super::*;
1218-
use std::default::Default;
12191218
use std::mem;
12201219

12211220
#[test]

src/location.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ impl<'ctx> fmt::Debug for Location<'ctx> {
2727
}
2828

2929
impl<'ctx> Location<'ctx> {
30-
pub fn null<'a>() -> Self {
30+
pub fn null() -> Self {
3131
Location {
3232
marker: std::marker::PhantomData,
33-
ptr: unsafe { core::ptr::null_mut() },
33+
ptr: core::ptr::null_mut(),
3434
}
3535
}
3636
}

0 commit comments

Comments
 (0)