File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
crates/kernel_cmdline/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use anyhow::Result;
1515/// Wraps the raw command line bytes and provides methods for parsing and iterating
1616/// over individual parameters. Uses copy-on-write semantics to avoid unnecessary
1717/// allocations when working with borrowed data.
18- #[ derive( Debug , Default ) ]
18+ #[ derive( Clone , Debug , Default ) ]
1919pub struct Cmdline < ' a > ( Cow < ' a , [ u8 ] > ) ;
2020
2121impl < ' a , T : AsRef < [ u8 ] > + ?Sized > From < & ' a T > for Cmdline < ' a > {
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ use anyhow::Result;
1414/// Wraps the raw command line bytes and provides methods for parsing and iterating
1515/// over individual parameters. Uses copy-on-write semantics to avoid unnecessary
1616/// allocations when working with borrowed data.
17- #[ derive( Debug , Default ) ]
17+ #[ derive( Clone , Debug , Default ) ]
1818pub struct Cmdline < ' a > ( bytes:: Cmdline < ' a > ) ;
1919
2020impl < ' a , T : AsRef < str > + ?Sized > From < & ' a T > for Cmdline < ' a > {
You can’t perform that action at this time.
0 commit comments