Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy temporary fixes #52

Merged
merged 1 commit into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion snowflake-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Since it does a lot of I/O the library is async-only, and currently has hard dep
- [x] PUT support [example](./examples/filetransfer.rs)
- [ ] GET support
- [x] AWS integration
- [ ] GCloud integration
- [ ] `GCloud` integration
- [ ] Azure integration
- [x] Parallel uploading of small files
- [x] Glob support for PUT (eg `*.csv`)
Expand Down
13 changes: 12 additions & 1 deletion snowflake-api/src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ pub enum ExecResponse {
}

// todo: add close session response, which should be just empty?
#[allow(clippy::large_enum_variant)]
// FIXME: dead_code
#[allow(clippy::large_enum_variant, dead_code)]
#[derive(Deserialize, Debug)]
#[serde(untagged)]
pub enum AuthResponse {
Expand Down Expand Up @@ -60,6 +61,8 @@ pub struct ExecErrorResponseData {

#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
// FIXME: dead_code
#[allow(dead_code)]
pub struct AuthErrorResponseData {
pub authn_method: Option<String>,
pub error_code: Option<String>,
Expand All @@ -73,6 +76,8 @@ pub struct NameValueParameter {

#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
// FIXME
#[allow(dead_code)]
pub struct LoginResponseData {
pub session_id: i64,
pub token: String,
Expand All @@ -87,6 +92,8 @@ pub struct LoginResponseData {

#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
// FIXME: dead_code
#[allow(dead_code)]
pub struct SessionInfo {
pub database_name: Option<String>,
pub schema_name: Option<String>,
Expand All @@ -96,6 +103,8 @@ pub struct SessionInfo {

#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
// FIXME: dead_code
#[allow(dead_code)]
pub struct AuthenticatorResponseData {
pub token_url: String,
pub sso_url: String,
Expand All @@ -104,6 +113,8 @@ pub struct AuthenticatorResponseData {

#[derive(Deserialize, Debug)]
#[serde(rename_all = "camelCase")]
// FIXME: dead_code
#[allow(dead_code)]
pub struct RenewSessionResponseData {
pub session_token: String,
pub validity_in_seconds_s_t: i64,
Expand Down
Loading