remove lint suppression

This commit is contained in:
Robin Appelman 2019-03-18 17:32:25 +01:00
commit dc9e396c1f
2 changed files with 3 additions and 8 deletions

View file

@ -1,5 +1,3 @@
#![allow(unused_variables)]
use libc::*; use libc::*;
use php::info::*; use php::info::*;
use php::zend::*; use php::zend::*;
@ -10,12 +8,12 @@ extern "C" {
} }
#[no_mangle] #[no_mangle]
pub extern "C" fn php_module_startup(type_: c_int, module_number: c_int) -> c_int { pub extern "C" fn php_module_startup(_type: c_int, _module_number: c_int) -> c_int {
0 0
} }
#[no_mangle] #[no_mangle]
pub extern "C" fn php_module_shutdown(type_: c_int, module_number: c_int) -> c_int { pub extern "C" fn php_module_shutdown(_type: c_int, _module_number: c_int) -> c_int {
0 0
} }
@ -27,7 +25,7 @@ pub extern "C" fn php_module_info() {
} }
#[no_mangle] #[no_mangle]
pub extern "C" fn helloworld(data: &ExecuteData, retval: &Value) { pub extern "C" fn helloworld(_data: &ExecuteData, _retval: &Value) {
unsafe { php_printf(c_str!("Hello world, Rust!")) }; unsafe { php_printf(c_str!("Hello world, Rust!")) };
} }

View file

@ -1,6 +1,3 @@
#![allow(dead_code)]
#![allow(unused_variables)]
extern crate libc; extern crate libc;
#[macro_use] #[macro_use]