Skip to content

Commit

Permalink
Upgrade to 1.76 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Feb 9, 2024
1 parent 741a05b commit 4b13397
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
&& !startsWith(github.ref, 'refs/tags/v')
&& !contains(github.event.head_commit.message, '[fresh ci]') }}
RUST_BACKTRACE: 1
RUST_VER: "1.75"
RUST_VER: "1.76"

jobs:

Expand Down
3 changes: 3 additions & 0 deletions lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ where
type Ok = ();
type Err = Traced<io::Error>;

#[allow(clippy::blocks_in_conditions)] // due to `instrument` attribute
#[tracing::instrument(level = "debug", err(Debug))]
async fn exec(&self, op: CreateFile<S>) -> Result<Self::Ok, Self::Err> {
let path = self.data_dir.join(op.path);
Expand Down Expand Up @@ -152,6 +153,7 @@ impl Exec<CreateSymlink> for Storage {
type Ok = ();
type Err = Traced<io::Error>;

#[allow(clippy::blocks_in_conditions)] // due to `instrument` attribute
#[tracing::instrument(level = "debug", err(Debug))]
async fn exec(&self, op: CreateSymlink) -> Result<Self::Ok, Self::Err> {
let dest = self.data_dir.join(op.dest);
Expand Down Expand Up @@ -192,6 +194,7 @@ impl Exec<GetFile> for Storage {
type Ok = Option<ReadOnlyFile>;
type Err = Traced<io::Error>;

#[allow(clippy::blocks_in_conditions)] // due to `instrument` attribute
#[tracing::instrument(level = "debug", err(Debug))]
async fn exec(&self, op: GetFile) -> Result<Self::Ok, Self::Err> {
let path = self.data_dir.join(op.path);
Expand Down

0 comments on commit 4b13397

Please sign in to comment.