Rust: Remove unnecessary no_mangle statements to silence warnings
This commit is contained in:
@ -24,7 +24,6 @@ mod c {
|
|||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
pub struct EekRenderer(*const c_void);
|
pub struct EekRenderer(*const c_void);
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// Button and View inside CButtonPlace are safe to pass to C
|
// Button and View inside CButtonPlace are safe to pass to C
|
||||||
// as long as they don't outlive the call
|
// as long as they don't outlive the call
|
||||||
|
|||||||
@ -32,9 +32,9 @@ pub mod c {
|
|||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct InputMethod(*const c_void);
|
pub struct InputMethod(*const c_void);
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
fn imservice_destroy_im(im: *mut c::InputMethod);
|
fn imservice_destroy_im(im: *mut c::InputMethod);
|
||||||
|
|
||||||
#[allow(improper_ctypes)] // IMService will never be dereferenced in C
|
#[allow(improper_ctypes)] // IMService will never be dereferenced in C
|
||||||
pub fn imservice_connect_listeners(im: *mut InputMethod, imservice: *const IMService);
|
pub fn imservice_connect_listeners(im: *mut InputMethod, imservice: *const IMService);
|
||||||
pub fn eek_input_method_commit_string(im: *mut InputMethod, text: *const c_char);
|
pub fn eek_input_method_commit_string(im: *mut InputMethod, text: *const c_char);
|
||||||
|
|||||||
@ -52,7 +52,6 @@ pub mod c {
|
|||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct EekGtkKeyboard(pub *const gtk_sys::GtkWidget);
|
pub struct EekGtkKeyboard(pub *const gtk_sys::GtkWidget);
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#[allow(improper_ctypes)]
|
#[allow(improper_ctypes)]
|
||||||
pub fn eek_gtk_keyboard_emit_feedback(
|
pub fn eek_gtk_keyboard_emit_feedback(
|
||||||
|
|||||||
@ -24,7 +24,6 @@ mod c {
|
|||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct GnomeXkbInfo(*const c_void);
|
pub struct GnomeXkbInfo(*const c_void);
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// from libc
|
// from libc
|
||||||
pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int;
|
pub fn strcoll(cs: *const c_char, ct: *const c_char) -> c_int;
|
||||||
|
|||||||
@ -9,7 +9,6 @@ pub mod c {
|
|||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
pub struct Manager(*const c_void);
|
pub struct Manager(*const c_void);
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn eekboard_context_service_set_overlay(
|
pub fn eekboard_context_service_set_overlay(
|
||||||
manager: Manager,
|
manager: Manager,
|
||||||
|
|||||||
@ -29,7 +29,6 @@ use ::logging::Warn;
|
|||||||
mod c {
|
mod c {
|
||||||
use std::os::raw::c_char;
|
use std::os::raw::c_char;
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn popover_open_settings_panel(panel: *const c_char);
|
pub fn popover_open_settings_panel(panel: *const c_char);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,6 @@ pub mod c {
|
|||||||
#[repr(transparent)]
|
#[repr(transparent)]
|
||||||
pub struct UIManager(*const c_void);
|
pub struct UIManager(*const c_void);
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn server_context_service_update_visible(imservice: *const UIManager, active: u32);
|
pub fn server_context_service_update_visible(imservice: *const UIManager, active: u32);
|
||||||
pub fn server_context_service_release_visibility(imservice: *const UIManager);
|
pub fn server_context_service_release_visibility(imservice: *const UIManager);
|
||||||
|
|||||||
@ -37,7 +37,6 @@ pub mod c {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
// From libc, to let KeyMap get deallocated.
|
// From libc, to let KeyMap get deallocated.
|
||||||
fn close(fd: u32);
|
fn close(fd: u32);
|
||||||
|
|||||||
Reference in New Issue
Block a user