Skip to content

Commit df2ab99

Browse files
committed
Remove lifetime
1 parent edfd3eb commit df2ab99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

json/src/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1255,9 +1255,9 @@ pub struct ImportMultiResult {
12551255

12561256
/// A import request for importdescriptors.
12571257
#[derive(Clone, PartialEq, Eq, Debug, Default, Deserialize, Serialize)]
1258-
pub struct ImportDescriptors<'a> {
1258+
pub struct ImportDescriptors {
12591259
#[serde(rename = "desc")]
1260-
pub descriptor: &'a str,
1260+
pub descriptor: String,
12611261
pub timestamp: Timestamp,
12621262
#[serde(skip_serializing_if = "Option::is_none")]
12631263
pub active: Option<bool>,
@@ -1268,7 +1268,7 @@ pub struct ImportDescriptors<'a> {
12681268
#[serde(skip_serializing_if = "Option::is_none")]
12691269
pub internal: Option<bool>,
12701270
#[serde(skip_serializing_if = "Option::is_none")]
1271-
pub label: Option<&'a str>,
1271+
pub label: Option<String>,
12721272
}
12731273

12741274
/// Progress toward rejecting pre-softfork blocks

0 commit comments

Comments
 (0)