fix couple of clippy findings:
filter_map_identity iter_kv_map needless_question_mark redundant_at_rest_pattern filter_next derivable_impls
This commit is contained in:
parent
cec34a43b1
commit
adf759bf6a
6 changed files with 8 additions and 16 deletions
|
@ -329,18 +329,13 @@ pub struct OnUnimplementedNote {
|
|||
}
|
||||
|
||||
/// Append a message for `~const Trait` errors.
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
||||
#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]
|
||||
pub enum AppendConstMessage {
|
||||
#[default]
|
||||
Default,
|
||||
Custom(Symbol),
|
||||
}
|
||||
|
||||
impl Default for AppendConstMessage {
|
||||
fn default() -> Self {
|
||||
AppendConstMessage::Default
|
||||
}
|
||||
}
|
||||
|
||||
impl<'tcx> OnUnimplementedDirective {
|
||||
fn parse(
|
||||
tcx: TyCtxt<'tcx>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue