Skip to content
Snippets Groups Projects
Verified Commit c5ec8420 authored by Vincent Lafeychine's avatar Vincent Lafeychine
Browse files

clippy: Fix expl-impl-clone-on-copy

parent f0507cd8
No related branches found
No related tags found
1 merge request!44Fix most of `clippy::pedantic`
......@@ -32,7 +32,6 @@ rustflags = [
"-Aclippy::string_lit_as_bytes",
# clippy::pedantic
"-Aclippy::expl_impl_clone_on_copy",
"-Aclippy::flat_map_option",
"-Aclippy::from_iter_instead_of_collect",
"-Aclippy::if_not_else",
......
......@@ -248,6 +248,7 @@ macro_rules! define_punctuation_structs {
$(
#[repr(C)]
#[$doc]
#[derive(Copy, Clone)]
///
/// Don't try to remember the name of this type — use the
/// [`MToken!`] macro instead.
......@@ -271,14 +272,6 @@ macro_rules! define_punctuation_structs {
//}
//}
impl Copy for $name {}
impl Clone for $name {
fn clone(&self) -> Self {
*self
}
}
//impl Debug for $name {
//fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
//f.write_str(stringify!($name))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment