We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d72e5 commit a33fb5cCopy full SHA for a33fb5c
src/context.rs
@@ -1215,7 +1215,6 @@ pub unsafe fn from_ptr<'ctx>(ptr: *mut gccjit_sys::gcc_jit_context) -> Context<'
1215
#[cfg(test)]
1216
mod tests {
1217
use super::super::*;
1218
- use std::default::Default;
1219
use std::mem;
1220
1221
#[test]
src/location.rs
@@ -27,10 +27,10 @@ impl<'ctx> fmt::Debug for Location<'ctx> {
27
}
28
29
impl<'ctx> Location<'ctx> {
30
- pub fn null<'a>() -> Self {
+ pub fn null() -> Self {
31
Location {
32
marker: std::marker::PhantomData,
33
- ptr: unsafe { core::ptr::null_mut() },
+ ptr: core::ptr::null_mut(),
34
35
36
0 commit comments