Skip to content

Commit

Permalink
Merge pull request #365 from thomastaylor312/chore/version_bump
Browse files Browse the repository at this point in the history
chore(*): Bumps version to 0.9.0
  • Loading branch information
thomastaylor312 committed Feb 2, 2023
2 parents e133e19 + 5001063 commit f8d20c5
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 28 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bindle"
version = "0.9.0-rc.2"
version = "0.9.0"
authors = [
"Matt Butcher <[email protected]>",
"Taylor Thomas <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion examples/as2bindle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async fn main() {
name: format!("{}", path.file_name().unwrap().to_string_lossy()),
media_type: "application/wasm".to_owned(),
sha256: sha,
size: md.len() as u64,
size: md.len(),
..bindle::Label::default()
};

Expand Down
2 changes: 1 addition & 1 deletion examples/cargo2bindle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async fn main() {
name: format!("{}", path.file_name().unwrap().to_string_lossy()),
media_type: "application/wasm".to_owned(),
sha256: sha,
size: md.len() as u64,
size: md.len(),
..bindle::Label::default()
};

Expand Down
3 changes: 1 addition & 2 deletions src/cache/lru.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ mod test {
*count += 1;
let info = scaffold
.parcel_files
.into_iter()
.map(|(_, info)| info)
.into_values()
.find(|info| info.sha == parcel_id)
.expect("Unable to find parcel");
Ok(Box::new(
Expand Down
26 changes: 13 additions & 13 deletions src/server/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pub fn api<P, I, Authn, Authz, S>(
secret_store: S,
verification_strategy: crate::VerificationStrategy,
keyring: KeyRing,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: crate::provider::Provider + Clone + Send + Sync + 'static,
I: crate::search::Search + Clone + Send + Sync + 'static,
Expand Down Expand Up @@ -98,7 +98,7 @@ pub mod v1 {
provider_client_id: String,
device_auth_url: String,
token_url: String,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone {
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone {
warp::path("login")
.and(warp::get())
.and(warp::query::<LoginParams>())
Expand All @@ -123,7 +123,7 @@ pub mod v1 {

pub fn query<S>(
index: S,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
S: Search + Clone + Send + Sync,
{
Expand All @@ -140,7 +140,7 @@ pub mod v1 {
secret_store: S,
verification_strategy: crate::VerificationStrategy,
keyring: Arc<KeyRing>,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
S: SecretKeyStorage + Clone + Send + Sync,
Expand All @@ -162,7 +162,7 @@ pub mod v1 {
secret_store: S,
verification_strategy: crate::VerificationStrategy,
keyring: Arc<KeyRing>,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
S: SecretKeyStorage + Clone + Send + Sync,
Expand All @@ -183,7 +183,7 @@ pub mod v1 {
// The GET and HEAD endpoints handle both parcels and invoices through the request router function
pub fn get<P>(
store: P,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
{
Expand All @@ -197,7 +197,7 @@ pub mod v1 {

pub fn head<P>(
store: P,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
{
Expand All @@ -211,7 +211,7 @@ pub mod v1 {

pub fn yank<P>(
store: P,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
{
Expand All @@ -229,7 +229,7 @@ pub mod v1 {

pub fn create<P>(
store: P,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
{
Expand All @@ -243,7 +243,7 @@ pub mod v1 {

pub fn get<P>(
store: P,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
{
Expand All @@ -255,7 +255,7 @@ pub mod v1 {

pub fn head<P>(
store: P,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
{
Expand All @@ -271,7 +271,7 @@ pub mod v1 {

pub fn get_missing_parcels<P>(
store: P,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
P: Provider + Clone + Send + Sync,
{
Expand All @@ -294,7 +294,7 @@ pub mod v1 {

pub fn host_keys<S>(
secret_store: S,
) -> impl Filter<Extract = impl warp::Reply, Error = warp::Rejection> + Clone
) -> impl Filter<Extract = (impl warp::Reply,), Error = warp::Rejection> + Clone
where
S: SecretKeyStorage + Clone + Send + Sync,
{
Expand Down
12 changes: 6 additions & 6 deletions tests/standalone.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ async fn test_successful_write() {
scaffold.invoice,
scaffold
.parcel_files
.into_iter()
.map(|(_, parcel)| (parcel.sha, Cursor::new(parcel.data)))
.into_values()
.map(|parcel| (parcel.sha, Cursor::new(parcel.data)))
.collect(),
)
.await
Expand All @@ -55,8 +55,8 @@ async fn test_successful_write_stream() {

let parcels = scaffold
.parcel_files
.into_iter()
.map(|(_, parcel)| {
.into_values()
.map(|parcel| {
(
parcel.sha,
FramedRead::new(std::io::Cursor::new(parcel.data), BytesCodec::default())
Expand Down Expand Up @@ -134,8 +134,8 @@ async fn test_invalid_standalone_write() {

let mut parcels: HashMap<String, Cursor<Vec<u8>>> = scaffold
.parcel_files
.into_iter()
.map(|(_, parcel)| (parcel.sha, Cursor::new(parcel.data)))
.into_values()
.map(|parcel| (parcel.sha, Cursor::new(parcel.data)))
.collect();

parcels.insert(
Expand Down

0 comments on commit f8d20c5

Please sign in to comment.