Skip to content

Commit

Permalink
add missing const lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaddison committed Aug 29, 2023
1 parent 4d95116 commit 1791d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions junos-agent/src/jet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub(crate) struct HttpsTransport {
}

impl HttpsTransport {
const DEFAULT_CA_CERT: &str = r"
const DEFAULT_CA_CERT: &'static str = r"
-----BEGIN CERTIFICATE-----
MIIE+zCCAuOgAwIBAgIUPGca+m6PygDD+Tk3ApM+6wfuBI8wDQYJKoZIhvcNAQEL
BQAwDTELMAkGA1UEAwwCY2EwHhcNMjMwNTE3MTMzMDEwWhcNMjQwNTE2MTMzMDEw
Expand Down Expand Up @@ -181,10 +181,10 @@ impl From<Channel> for Client<New> {
impl Client<New> {
// TODO:
// get version from Cargo.toml
const CLIENT_ID: &str = "bgpfu-junos-agent-0.0.0";
const CLIENT_ID: &'static str = "bgpfu-junos-agent-0.0.0";
// TODO:
// find out what this is for
const GROUP_ID: &str = "";
const GROUP_ID: &'static str = "";

pub(crate) async fn authenticate(
self,
Expand Down

0 comments on commit 1791d45

Please sign in to comment.