Skip to content

Commit

Permalink
Fix new clippy and doc warnings in 1.63.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bsilver8192 committed Aug 14, 2022
1 parent d0bc76e commit 37353fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions engine/src/conversion/codegen_rs/function_wrapper_rs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl TypeConversionPolicy {
}
RustConversionType::FromPinMaybeUninitToPtr => {
let ty = match self.cxxbridge_type() {
Type::Ptr(TypePtr { elem, .. }) => &*elem,
Type::Ptr(TypePtr { elem, .. }) => elem,
_ => panic!("Not a ptr"),
};
let ty = parse_quote! {
Expand All @@ -80,7 +80,7 @@ impl TypeConversionPolicy {
}
RustConversionType::FromPinMoveRefToPtr => {
let ty = match self.cxxbridge_type() {
Type::Ptr(TypePtr { elem, .. }) => &*elem,
Type::Ptr(TypePtr { elem, .. }) => elem,
_ => panic!("Not a ptr"),
};
let ty = parse_quote! {
Expand All @@ -99,7 +99,7 @@ impl TypeConversionPolicy {
}
RustConversionType::FromTypeToPtr => {
let ty = match self.cxxbridge_type() {
Type::Ptr(TypePtr { elem, .. }) => &*elem,
Type::Ptr(TypePtr { elem, .. }) => elem,
_ => panic!("Not a ptr"),
};
let ty = parse_quote! { &mut #ty };
Expand Down
2 changes: 1 addition & 1 deletion engine/src/known_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ pub(crate) fn known_types() -> &'static TypeDatabase {
}

/// The type of payload that a cxx generic can contain.
#[derive(PartialEq, Clone, Copy)]
#[derive(PartialEq, Eq, Clone, Copy)]
pub enum CxxGenericType {
/// Not a generic at all
Not,
Expand Down
2 changes: 1 addition & 1 deletion parser/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/subclass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub use autocxx_macro::subclass as is_subclass;
/// #[subclass(superclass("MyCppSuperclass"))]
/// struct Bar {};
/// ```
/// * as a directive within the [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:
/// ```
Expand Down

0 comments on commit 37353fa

Please sign in to comment.