Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed Sep 24, 2024
1 parent 773dcfc commit 8a6f230
Show file tree
Hide file tree
Showing 16 changed files with 267 additions and 267 deletions.
40 changes: 20 additions & 20 deletions kittycad/src/api_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -83,10 +83,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -189,10 +189,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -240,10 +240,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -357,10 +357,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -403,10 +403,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -509,10 +509,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -555,10 +555,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -669,10 +669,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -720,10 +720,10 @@ impl ApiCalls {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down
16 changes: 8 additions & 8 deletions kittycad/src/api_tokens.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ impl ApiTokens {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -165,10 +165,10 @@ impl ApiTokens {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -206,10 +206,10 @@ impl ApiTokens {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -241,10 +241,10 @@ impl ApiTokens {
Ok(())
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}
}
12 changes: 6 additions & 6 deletions kittycad/src/apps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ impl Apps {
Ok(())
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -73,10 +73,10 @@ impl Apps {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand All @@ -98,10 +98,10 @@ impl Apps {
Ok(())
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}
}
4 changes: 2 additions & 2 deletions kittycad/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ impl Executor {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down
24 changes: 12 additions & 12 deletions kittycad/src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ impl File {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -100,10 +100,10 @@ impl File {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -170,10 +170,10 @@ impl File {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -218,10 +218,10 @@ impl File {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -274,10 +274,10 @@ impl File {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -330,10 +330,10 @@ impl File {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}
}
20 changes: 10 additions & 10 deletions kittycad/src/hidden.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ impl Hidden {
})
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -71,10 +71,10 @@ impl Hidden {
Ok(())
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -107,10 +107,10 @@ impl Hidden {
Ok(())
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand Down Expand Up @@ -144,10 +144,10 @@ impl Hidden {
Ok(())
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}

Expand All @@ -168,10 +168,10 @@ impl Hidden {
Ok(())
} else {
let text = resp.text().await.unwrap_or_default();
return Err(crate::types::error::Error::Server {
Err(crate::types::error::Error::Server {
body: text.to_string(),
status,
});
})
}
}
}
Loading

0 comments on commit 8a6f230

Please sign in to comment.