Skip to content

Commit

Permalink
Fixed new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bobozaur committed Nov 20, 2023
1 parent bc788bd commit a448b30
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions src/connection/websocket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ pub struct ExaWebSocket {
}

impl ExaWebSocket {
const WS_SCHEME: &str = "ws";
const WSS_SCHEME: &str = "wss";
const WS_SCHEME: &'static str = "ws";
const WSS_SCHEME: &'static str = "wss";

pub(crate) async fn new(
host: &str,
Expand Down
4 changes: 2 additions & 2 deletions src/options/serializable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ struct LoginAttrs<'a> {
}

impl<'a> SerializableConOpts<'a> {
const CLIENT_RUNTIME: &str = "Rust";
const CLIENT_NAME: &str = "Rust Exasol";
const CLIENT_RUNTIME: &'static str = "Rust";
const CLIENT_NAME: &'static str = "Rust Exasol";
}

impl<'a> From<ExaConnectOptionsRef<'a>> for SerializableConOpts<'a> {
Expand Down
26 changes: 13 additions & 13 deletions src/type_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,19 @@ pub enum ExaDataType {
}

impl ExaDataType {
const NULL: &str = "NULL";
const BOOLEAN: &str = "BOOLEAN";
const CHAR: &str = "CHAR";
const DATE: &str = "DATE";
const DECIMAL: &str = "DECIMAL";
const DOUBLE: &str = "DOUBLE PRECISION";
const GEOMETRY: &str = "GEOMETRY";
const INTERVAL_DAY_TO_SECOND: &str = "INTERVAL DAY TO SECOND";
const INTERVAL_YEAR_TO_MONTH: &str = "INTERVAL YEAR TO MONTH";
const TIMESTAMP: &str = "TIMESTAMP";
const TIMESTAMP_WITH_LOCAL_TIME_ZONE: &str = "TIMESTAMP WITH LOCAL TIME ZONE";
const VARCHAR: &str = "VARCHAR";
const HASHTYPE: &str = "HASHTYPE";
const NULL: &'static str = "NULL";
const BOOLEAN: &'static str = "BOOLEAN";
const CHAR: &'static str = "CHAR";
const DATE: &'static str = "DATE";
const DECIMAL: &'static str = "DECIMAL";
const DOUBLE: &'static str = "DOUBLE PRECISION";
const GEOMETRY: &'static str = "GEOMETRY";
const INTERVAL_DAY_TO_SECOND: &'static str = "INTERVAL DAY TO SECOND";
const INTERVAL_YEAR_TO_MONTH: &'static str = "INTERVAL YEAR TO MONTH";
const TIMESTAMP: &'static str = "TIMESTAMP";
const TIMESTAMP_WITH_LOCAL_TIME_ZONE: &'static str = "TIMESTAMP WITH LOCAL TIME ZONE";
const VARCHAR: &'static str = "VARCHAR";
const HASHTYPE: &'static str = "HASHTYPE";

/// Returns `true` if this instance is compatible with the other one provided.
///
Expand Down

0 comments on commit a448b30

Please sign in to comment.