Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
HJLebbink committed Feb 27, 2024
1 parent 0c852d8 commit cfdf41c
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ http = "0.2.9"
hyper = { version = "0.14.27", features = ["full"] }
lazy_static = "1.4.0"
md5 = "0.7.0"
multimap = "0.9.0"
multimap = "0.10.0"
os_info = "3.7.0"
rand = "0.8.5"
regex = "1.9.4"
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#![allow(clippy::tabs_in_doc_comments)]
#![allow(clippy::result_large_err)]
#![allow(clippy::too_many_arguments)]
pub mod s3;
7 changes: 1 addition & 6 deletions src/s3/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,17 @@ use async_recursion::async_recursion;
use bytes::{Buf, Bytes};
use dashmap::DashMap;
use hyper::http::Method;
use os_info;
use reqwest::header::HeaderMap;
use std::collections::HashMap;
use std::fs::File;
use std::io::prelude::*;
use std::io::Read;
use std::path::{Path, PathBuf};
use std::sync::Arc;
use xmltree::Element;

mod list_objects;
mod listen_bucket_notification;

pub use list_objects::*;
pub use listen_bucket_notification::*;

/// Client Builder manufactures a Client using given parameters.
#[derive(Debug, Default)]
pub struct ClientBuilder {
Expand Down Expand Up @@ -706,7 +701,7 @@ impl Client {

async fn calculate_part_count<'a>(
&self,
sources: &'a mut Vec<ComposeSource<'_>>,
sources: &'a mut [ComposeSource<'_>],
) -> Result<u16, Error> {
let mut object_size = 0_usize;
let mut i = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/s3/client/listen_bucket_notification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ impl Client {
continue;
}
let records_res: Result<NotificationRecords, Error> =
serde_json::from_str(&s).map_err(|e| e.into());
serde_json::from_str(s).map_err(|e| e.into());
return Some((records_res, reader));
}
Err(e) => return Some((Err(e.into()), reader)),
Expand Down
3 changes: 1 addition & 2 deletions src/s3/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ impl BaseUrl {
host: self.host.clone(),
port: self.port,
path: String::from("/"),
query: query.clone(),
..Default::default()
query: query.clone()
};

if bucket_name.is_none() {
Expand Down
2 changes: 2 additions & 0 deletions tests/start-server.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

#Note start this script from minio-rs, not from directory tests

set -x
set -e

Expand Down

0 comments on commit cfdf41c

Please sign in to comment.