Even more lints!
This commit is contained in:
parent
c7cfc81c6f
commit
32e8f952fd
@ -1,7 +1,15 @@
|
|||||||
#![recursion_limit = "1024"]
|
#![recursion_limit = "1024"]
|
||||||
#![warn(unused_extern_crates, unused)]
|
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![cfg_attr(feature = "cargo-clippy", allow(blacklisted_name, option_map_unit_fn))]
|
#![cfg_attr(feature = "cargo-clippy", allow(blacklisted_name, option_map_unit_fn))]
|
||||||
|
// Enable lint group collections
|
||||||
|
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
|
||||||
|
// standalone lints
|
||||||
|
#![warn(
|
||||||
|
const_err, improper_ctypes, non_shorthand_field_patterns, no_mangle_generic_items,
|
||||||
|
overflowing_literals, plugin_as_library, private_no_mangle_fns, private_no_mangle_statics,
|
||||||
|
unconditional_recursion, unions_with_drop_fields, while_true, missing_debug_implementations,
|
||||||
|
trivial_casts, trivial_numeric_casts, elided_lifetime_in_paths, missing_copy_implementations
|
||||||
|
)]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
extern crate failure;
|
extern crate failure;
|
||||||
|
|||||||
@ -3,7 +3,15 @@
|
|||||||
allow(clone_on_ref_ptr, blacklisted_name, match_same_arms, option_map_unit_fn)
|
allow(clone_on_ref_ptr, blacklisted_name, match_same_arms, option_map_unit_fn)
|
||||||
)]
|
)]
|
||||||
#![allow(unknown_lints)]
|
#![allow(unknown_lints)]
|
||||||
#![warn(unused_extern_crates, unused)]
|
// Enable lint group collections
|
||||||
|
#![warn(nonstandard_style, edition_2018, rust_2018_idioms, bad_style, unused)]
|
||||||
|
// standalone lints
|
||||||
|
#![warn(
|
||||||
|
const_err, improper_ctypes, non_shorthand_field_patterns, no_mangle_generic_items,
|
||||||
|
overflowing_literals, plugin_as_library, private_no_mangle_fns, private_no_mangle_statics,
|
||||||
|
unconditional_recursion, unions_with_drop_fields, while_true, missing_debug_implementations,
|
||||||
|
trivial_casts, trivial_numeric_casts, elided_lifetime_in_paths, missing_copy_implementations
|
||||||
|
)]
|
||||||
#![deny(warnings)]
|
#![deny(warnings)]
|
||||||
|
|
||||||
extern crate gdk;
|
extern crate gdk;
|
||||||
|
|||||||
@ -355,7 +355,7 @@ impl PlayerWidget {
|
|||||||
fn connect_update_slider(slider: >k::Scale, player: &gst_player::Player) -> SignalHandlerId {
|
fn connect_update_slider(slider: >k::Scale, player: &gst_player::Player) -> SignalHandlerId {
|
||||||
slider.connect_value_changed(clone!(player => move |slider| {
|
slider.connect_value_changed(clone!(player => move |slider| {
|
||||||
let value = slider.get_value() as u64;
|
let value = slider.get_value() as u64;
|
||||||
player.seek(ClockTime::from_seconds(value as u64));
|
player.seek(ClockTime::from_seconds(value));
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user