mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 06:35:56 +02:00
fix: clippy warning of rust 1.8.4 (#14984)
# Description I'm on rust toolchain 1.8.4, and I can see clippy warnings that can't be caught by the ci workflow, primarily related to lifetime params. I think it doesn't hurt to fix those in advance. # User-Facing Changes # Tests + Formatting # After Submitting
This commit is contained in:
@ -31,7 +31,7 @@ pub struct JsonFlattener<'a> {
|
||||
pub preserve_arrays: bool,
|
||||
}
|
||||
|
||||
impl<'a> Default for JsonFlattener<'a> {
|
||||
impl Default for JsonFlattener<'_> {
|
||||
fn default() -> Self {
|
||||
JsonFlattener {
|
||||
separator: ".",
|
||||
@ -56,7 +56,7 @@ impl<'a> Default for JsonFlattener<'a> {
|
||||
///
|
||||
/// let flattened_example = flattener.flatten(&example);
|
||||
/// ```
|
||||
impl<'a> JsonFlattener<'a> {
|
||||
impl JsonFlattener<'_> {
|
||||
/// Returns a flattener with the default arguments
|
||||
/// # Examples
|
||||
/// ```
|
||||
|
Reference in New Issue
Block a user