diff --git a/parser/src/config.rs b/parser/src/config.rs index 8d302493e..8f7b599c0 100644 --- a/parser/src/config.rs +++ b/parser/src/config.rs @@ -29,7 +29,7 @@ use crate::{directives::get_directives, RustPath}; use quote::quote; -#[derive(PartialEq, Clone, Debug, Hash)] +#[derive(PartialEq, Eq, Clone, Debug, Hash)] pub enum UnsafePolicy { AllFunctionsSafe, AllFunctionsUnsafe, diff --git a/src/subclass.rs b/src/subclass.rs index 8b0a2ecbc..0e335a2e5 100644 --- a/src/subclass.rs +++ b/src/subclass.rs @@ -31,7 +31,7 @@ pub use autocxx_macro::subclass as is_subclass; /// #[subclass(superclass("MyCppSuperclass"))] /// struct Bar {}; /// ``` -/// * as a directive within the [autocxx::include_cpp] macro, in which case you +/// * as a directive within the [crate::include_cpp] macro, in which case you /// must provide two arguments of the superclass and then the /// subclass: /// ```