From e6afc24c30c16a5ec3826ae97378bd6008f18927 Mon Sep 17 00:00:00 2001 From: Sean Lynch Date: Wed, 9 Oct 2019 16:05:36 -0700 Subject: [PATCH] Fix some small typos found in twitter/pelikan#263 --- rust/ccommon-derive/src/attrs.rs | 1 - rust/ccommon_rs/src/ccbox.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/rust/ccommon-derive/src/attrs.rs b/rust/ccommon-derive/src/attrs.rs index ebb24450..761c441d 100644 --- a/rust/ccommon-derive/src/attrs.rs +++ b/rust/ccommon-derive/src/attrs.rs @@ -16,7 +16,6 @@ use proc_macro2::TokenStream; use quote::ToTokens; use syn::parse::*; -use syn::parse_quote; use syn::punctuated::*; use syn::spanned::Spanned; use syn::*; diff --git a/rust/ccommon_rs/src/ccbox.rs b/rust/ccommon_rs/src/ccbox.rs index 3a6d3edb..74108aa4 100644 --- a/rust/ccommon_rs/src/ccbox.rs +++ b/rust/ccommon_rs/src/ccbox.rs @@ -104,7 +104,7 @@ impl CCBox { CCBox(NonNull::new_unchecked(raw)) } - /// Comsumes the box and returns the pointer stored inside. + /// Consumes the box and returns the pointer stored inside. /// /// The pointer should be freed using [`_cc_free`](ccommon_sys::_cc_free) /// or by recreating a `CCBox` from the pointer.