mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-22 00:05:41 +08:00
Shut up Clippy 1.72
This commit is contained in:
parent
ff433b0cb2
commit
1073f59929
@ -269,7 +269,7 @@ impl EventHandler {
|
||||
pub fn new(desc: EventDescription, name: Option<WString>) -> Self {
|
||||
Self {
|
||||
desc,
|
||||
function_name: name.unwrap_or_else(WString::new),
|
||||
function_name: name.unwrap_or_default(),
|
||||
removed: AtomicBool::new(false),
|
||||
fired: AtomicBool::new(false),
|
||||
}
|
||||
|
@ -56,6 +56,9 @@ mod topic_monitor_ffi {
|
||||
|
||||
/// The list of topics which may be observed.
|
||||
#[repr(u8)]
|
||||
// clippy 1.72 complains that the PartialOrd should be "{ Some(self.cmp(other)) }"
|
||||
// but that requires us to implement PartialOrd ourselves.
|
||||
#[allow(clippy::incorrect_partial_ord_impl_on_ord_type)]
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
|
||||
pub enum topic_t {
|
||||
sighupint, // Corresponds to both SIGHUP and SIGINT signals.
|
||||
|
Loading…
x
Reference in New Issue
Block a user