Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Arti
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
Core
Arti
Merge requests
!422
Actually throw an anyhow
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Actually throw an anyhow
Diziet/arti:anyhow
into
main
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Ian Jackson
requested to merge
Diziet/arti:anyhow
into
main
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Prompted by a compiler warning which I weirdly can't seem to reproduce?
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
5a2f1b89
1 commit,
2 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
crates/arti-bench/src/main.rs
+
1
−
1
Options
@@ -238,7 +238,7 @@ async fn client<S: AsyncRead + AsyncWrite + Unpin>(
let
read
=
socket
.read
(
&
mut
received
)
.await
?
;
if
read
==
0
{
anyhow!
(
"unexpected EOF"
);
return
Err
(
anyhow!
(
"unexpected EOF"
)
)
;
}
let
first_byte_ts
=
SystemTime
::
now
();
socket
.read_exact
(
&
mut
received
[
read
..
])
.await
?
;
Loading