mirror of
https://github.com/icewind1991/ivory.git
synced 2026-06-03 18:54:07 +02:00
remove lint suppression
This commit is contained in:
parent
2c6fc98b87
commit
dc9e396c1f
2 changed files with 3 additions and 8 deletions
|
|
@ -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!")) };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
#![allow(dead_code)]
|
|
||||||
#![allow(unused_variables)]
|
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue