Skip to content

Commit 4cbfc84

Browse files
TimTheBigblyxyas
andcommitted
Apply suggestions from code review
Co-authored-by: Alejandra González <[email protected]>
1 parent b20bd28 commit 4cbfc84

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

library/proc_macro/src/bridge/buffer.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ impl Drop for Buffer {
127127
}
128128

129129
impl From<Vec<u8>> for Buffer {
130-
/// Move data, len, and capacity from `Vec`, then create custom reserve and drop fns.
130+
/// Create a `Buffer` without allocation.\
131+
/// By moving data, len, and capacity from `Vec`, then create custom reserve and drop fns.
131132
fn from(v: Vec<u8>) -> Self {
132133
let mut v = ManuallyDrop::new(v);
133134
let (data, len, capacity) = (v.as_mut_ptr(), v.len(), v.capacity());

src/tools/clippy/clippy_lints/src/attrs/mixed_attributes_style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl From<&AttrKind> for SimpleAttrKind {
1919
/// if it's a `DocComment` then `Doc` is returned with no conversion.
2020
///
2121
/// ## Cost
22-
/// If `AttrKind` is `DocComment` it's free, however if it's `Normal` their is heap allocation
22+
/// If `AttrKind` is `DocComment` it's free, however if it's `Normal` there is heap allocation
2323
fn from(value: &AttrKind) -> Self {
2424
match value {
2525
AttrKind::Normal(attr) => {

0 commit comments

Comments
 (0)