Skip to content

Commit

Permalink
chore: update rust channel from 1.66 to 1.82 (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Nov 2, 2024
1 parent bf5416f commit 82573eb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 27 deletions.
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.66.0"
channel = "1.82.0"
9 changes: 2 additions & 7 deletions src/args/outdated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,15 @@ pub struct OutdatedArgs {
pub details: Option<OutdatedDetails>,
}

#[derive(Debug, Eq, PartialEq, Copy, Clone)]
#[derive(Debug, Eq, PartialEq, Copy, Clone, Default)]
pub enum OutdatedDetails {
PkgName,
#[default]
PkgFilePath,
LossyYaml,
StrictYaml,
}

impl Default for OutdatedDetails {
fn default() -> Self {
OutdatedDetails::PkgFilePath
}
}

impl FromStr for OutdatedDetails {
type Err = String;

Expand Down
1 change: 1 addition & 0 deletions src/cmd/init_aur_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ pub fn init_aur_builder(args: InitAurBuilderArgs) -> Status {
.write(true)
.read(true)
.create(true)
.truncate(false)
.open(BUILD_PACMAN_REPO)
.map_err(|error| {
eprintln!("⮾ {}", error);
Expand Down
14 changes: 2 additions & 12 deletions src/manifest/arch_filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::{ArchCollectionWrapper, BorrowedArchCollection, OwnedArchCollection,
use pipe_trait::*;
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Eq, PartialEq, Copy, Clone)]
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq, Copy, Clone, Default)]
#[serde(
from = "SerdeHelper<ArchCollection>",
into = "SerdeHelper<ArchCollection>"
Expand All @@ -11,6 +11,7 @@ pub enum ArchFilter<ArchCollection>
where
ArchCollection: ArchCollectionWrapper,
{
#[default]
Any,
Selective(ArchCollection),
}
Expand Down Expand Up @@ -115,17 +116,6 @@ fn test_filter() {
assert_eq!(&actual, &expected);
}

/* OPTION HELPER */

impl<ArchCollection> Default for ArchFilter<ArchCollection>
where
ArchCollection: ArchCollectionWrapper,
{
fn default() -> Self {
ArchFilter::Any
}
}

/* SERDE HELPER */

#[derive(Serialize, Deserialize, Copy, Clone)]
Expand Down
9 changes: 2 additions & 7 deletions src/manifest/build_metadata.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize, Copy, Clone, Eq, PartialEq)]
#[derive(Debug, Serialize, Deserialize, Copy, Clone, Default, Eq, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum BuildMetadata {
SrcInfo,
PkgBuild,
#[default]
Either,
}

impl Default for BuildMetadata {
fn default() -> Self {
BuildMetadata::Either
}
}

0 comments on commit 82573eb

Please sign in to comment.