Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 55e33a8

Browse files
committed
Fix clippy warnings
1 parent 34c2468 commit 55e33a8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sourceview-sys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// DO NOT EDIT
44

55
#![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
6+
#![cfg_attr(feature = "cargo-clippy", allow(approx_constant, type_complexity, unreadable_literal))]
67

78
extern crate libc;
89
extern crate glib_sys as glib;

src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// See the COPYRIGHT file at the top-level directory of this distribution.
33
// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
44

5+
#![cfg_attr(feature = "cargo-clippy", allow(transmute_ptr_to_ref))]
6+
#![cfg_attr(feature = "cargo-clippy", allow(type_complexity))]
7+
58
#[macro_use]
69
extern crate glib;
710
extern crate glib_sys as glib_ffi;

0 commit comments

Comments
 (0)