aboutsummaryrefslogtreecommitdiff
path: root/src/spanned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/spanned.rs')
-rw-r--r--src/spanned.rs16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/spanned.rs b/src/spanned.rs
index d9fec3a..f2fc180 100644
--- a/src/spanned.rs
+++ b/src/spanned.rs
@@ -2,13 +2,13 @@ use serde::{de, ser};
use std::fmt;
#[doc(hidden)]
-pub const NAME: &'static str = "$__toml_private_Spanned";
+pub const NAME: &str = "$__toml_private_Spanned";
#[doc(hidden)]
-pub const START: &'static str = "$__toml_private_start";
+pub const START: &str = "$__toml_private_start";
#[doc(hidden)]
-pub const END: &'static str = "$__toml_private_end";
+pub const END: &str = "$__toml_private_end";
#[doc(hidden)]
-pub const VALUE: &'static str = "$__toml_private_value";
+pub const VALUE: &str = "$__toml_private_value";
/// A spanned value, indicating the range at which it is defined in the source.
///
@@ -116,17 +116,13 @@ where
let value: T = visitor.next_value()?;
- Ok(Spanned {
- start: start,
- end: end,
- value: value,
- })
+ Ok(Spanned { start, end, value })
}
}
let visitor = SpannedVisitor(::std::marker::PhantomData);
- static FIELDS: [&'static str; 3] = [START, END, VALUE];
+ static FIELDS: [&str; 3] = [START, END, VALUE];
deserializer.deserialize_struct(NAME, &FIELDS, visitor)
}
}