chore: cleanup code

This commit is contained in:
Zomatree
2023-03-15 19:47:30 +00:00
parent 0321eff62b
commit f309218573
11 changed files with 11 additions and 29 deletions

View File

@@ -8,7 +8,7 @@ fn main() {
.output()
{
if let Ok(git_origin) = String::from_utf8(output.stdout) {
println!("cargo:rustc-env=GIT_ORIGIN_URL={}", git_origin);
println!("cargo:rustc-env=GIT_ORIGIN_URL={git_origin}");
}
}

View File

@@ -11,20 +11,15 @@ use ulid::Ulid;
use validator::Validate;
/// # Channel Type
#[derive(Serialize, Deserialize, JsonSchema)]
#[derive(Serialize, Deserialize, JsonSchema, Default)]
enum ChannelType {
/// Text Channel
#[default]
Text,
/// Voice Channel
Voice,
}
impl Default for ChannelType {
fn default() -> Self {
ChannelType::Text
}
}
/// # Channel Data
#[derive(Validate, Serialize, Deserialize, JsonSchema)]
pub struct DataCreateChannel {