Skip to content

Commit

Permalink
fix: deprecated elided_lifetimes_in_associated_constant
Browse files Browse the repository at this point in the history
  • Loading branch information
HJLebbink committed Feb 27, 2024
1 parent 8fb211a commit 0c852d8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/s3/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2333,9 +2333,9 @@ pub struct PostPolicy<'a> {
}

impl<'a> PostPolicy<'a> {
const EQ: &str = "eq";
const STARTS_WITH: &str = "starts-with";
const ALGORITHM: &str = "AWS4-HMAC-SHA256";
const EQ: &'static str = "eq";
const STARTS_WITH: &'static str = "starts-with";
const ALGORITHM: &'static str = "AWS4-HMAC-SHA256";

/// Returns post policy with given bucket name and expiration
///
Expand Down
4 changes: 2 additions & 2 deletions src/s3/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ pub struct PrefixFilterRule {
}

impl PrefixFilterRule {
pub const NAME: &str = "prefix";
pub const NAME: &'static str = "prefix";
}

#[derive(Clone, Debug)]
Expand All @@ -1208,7 +1208,7 @@ pub struct SuffixFilterRule {
}

impl SuffixFilterRule {
pub const NAME: &str = "suffix";
pub const NAME: &'static str = "suffix";
}

#[derive(Clone, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ struct ClientTest {
}

impl ClientTest {
const SQS_ARN: &str = "arn:minio:sqs::miniojavatest:webhook";
const SQS_ARN: &'static str = "arn:minio:sqs::miniojavatest:webhook";

fn new(
base_url: BaseUrl,
Expand Down

0 comments on commit 0c852d8

Please sign in to comment.