Skip to content

Commit ac98b5d

Browse files
authored
Fix warnings (#557)
Removes warning on static lifetimes by marking them 'static explicitly. Required by rust 1.75.
1 parent 41029fd commit ac98b5d

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

server/src/option.rs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -314,28 +314,28 @@ impl FromArgMatches for Server {
314314

315315
impl Server {
316316
// identifiers for arguments
317-
pub const TLS_CERT: &str = "tls-cert-path";
318-
pub const TLS_KEY: &str = "tls-key-path";
319-
pub const ADDRESS: &str = "address";
320-
pub const DOMAIN_URI: &str = "origin";
321-
pub const STAGING: &str = "local-staging-path";
322-
pub const UPLOAD_INTERVAL: &str = "upload-interval";
323-
pub const USERNAME: &str = "username";
324-
pub const PASSWORD: &str = "password";
325-
pub const CHECK_UPDATE: &str = "check-update";
326-
pub const SEND_ANALYTICS: &str = "send-analytics";
327-
pub const OPEN_AI_KEY: &str = "open-ai-key";
328-
pub const OPENID_CLIENT_ID: &str = "oidc-client";
329-
pub const OPENID_CLIENT_SECRET: &str = "oidc-client-secret";
330-
pub const OPENID_ISSUER: &str = "oidc-issuer";
331-
pub const GRPC_PORT: &str = "grpc-port";
332-
pub const LIVETAIL_CAPACITY: &str = "livetail-capacity";
317+
pub const TLS_CERT: &'static str = "tls-cert-path";
318+
pub const TLS_KEY: &'static str = "tls-key-path";
319+
pub const ADDRESS: &'static str = "address";
320+
pub const DOMAIN_URI: &'static str = "origin";
321+
pub const STAGING: &'static str = "local-staging-path";
322+
pub const UPLOAD_INTERVAL: &'static str = "upload-interval";
323+
pub const USERNAME: &'static str = "username";
324+
pub const PASSWORD: &'static str = "password";
325+
pub const CHECK_UPDATE: &'static str = "check-update";
326+
pub const SEND_ANALYTICS: &'static str = "send-analytics";
327+
pub const OPEN_AI_KEY: &'static str = "open-ai-key";
328+
pub const OPENID_CLIENT_ID: &'static str = "oidc-client";
329+
pub const OPENID_CLIENT_SECRET: &'static str = "oidc-client-secret";
330+
pub const OPENID_ISSUER: &'static str = "oidc-issuer";
331+
pub const GRPC_PORT: &'static str = "grpc-port";
332+
pub const LIVETAIL_CAPACITY: &'static str = "livetail-capacity";
333333
// todo : what should this flag be
334-
pub const QUERY_MEM_POOL_SIZE: &str = "query-mempool-size";
335-
pub const ROW_GROUP_SIZE: &str = "row-group-size";
336-
pub const PARQUET_COMPRESSION_ALGO: &str = "compression-algo";
337-
pub const DEFAULT_USERNAME: &str = "admin";
338-
pub const DEFAULT_PASSWORD: &str = "admin";
334+
pub const QUERY_MEM_POOL_SIZE: &'static str = "query-mempool-size";
335+
pub const ROW_GROUP_SIZE: &'static str = "row-group-size";
336+
pub const PARQUET_COMPRESSION_ALGO: &'static str = "compression-algo";
337+
pub const DEFAULT_USERNAME: &'static str = "admin";
338+
pub const DEFAULT_PASSWORD: &'static str = "admin";
339339

340340
pub fn local_stream_data_path(&self, stream_name: &str) -> PathBuf {
341341
self.local_staging_path.join(stream_name)

0 commit comments

Comments
 (0)