CARVIEW |
Select Language
HTTP/2 200
date: Fri, 25 Jul 2025 02:28:11 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/ActivityWatch/aw-server-rust.git
etag: W/"6c98cd21e843fb3dab6b535cfe229e9b"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=3mfCt1D78v0tP0jTrvox1fdzM7vmxNi6gcB8InpnjfDtdKJ20Db%2BdlKb4tzgLahUa5K%2FfIvvD%2F19H9hvTWoZw1%2BkY0dlEDprdsbEVwxTnDyUixvY51qRSEeBs4ide1mZ2zpWqLJCSil2WS3U0eZA4%2FOjb9zSJ3g%2BvRaESql11ofKV8okgIGp0AO%2FMK%2B%2B6ducvZb183pC5K2mii27VdhnhhNl9Ij3Eqh%2BSvjbjBOeqzru7HK4Hqi4v3EO6wmY%2Bt12HgThmizjXXjSh%2FBc3%2BoIgA%3D%3D--ujV9Y1RbwraGVajq--61j6%2FGWmd7jyHdIrOp%2Fe8Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1621526068.1753410490; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:28:10 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sat, 25 Jul 2026 02:28:10 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A0A4:1D2B8F:BF0A6:122C01:6882EBBA
fix: replace panics with results & better option types (#437) · ActivityWatch/aw-server-rust@dc70318 · GitHub
Copy file name to clipboardExpand all lines: aw-client-rust/src/blocking.rs
Copy file name to clipboardExpand all lines: aw-client-rust/tests/test.rs
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit dc70318
fix: replace panics with results & better option types (#437)
* Replace panics with results & better option types
* Apply suggestions from code review
* Remove Reqwest from AWClient::new and return a Result instead
* Run cargo fmt
---------
Co-authored-by: NathanM <2955071+nathanmerrill@users.noreply.github.com>
Co-authored-by: Erik Bjäreholt <erik.bjareholt@gmail.com>1 parent a144746 commit dc70318Copy full SHA for dc70318
File tree
Expand file treeCollapse file tree
9 files changed
+114
-137
lines changedFilter options
- aw-client-rust
- src
- tests
- aw-models/src
- aw-sync/src
Expand file treeCollapse file tree
9 files changed
+114
-137
lines changedaw-client-rust/src/blocking.rs
Copy file name to clipboardExpand all lines: aw-client-rust/src/blocking.rs+6-6Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
2 | 1 |
| |
3 | 2 |
| |
| 3 | + | |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
| |||
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 |
| - | |
| 13 | + | |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 |
| - | |
42 |
| - | |
| 41 | + | |
| 42 | + | |
43 | 43 |
| |
44 |
| - | |
| 44 | + | |
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
| 49 | + | |
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
|
+13-9Lines changed: 13 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
11 | 10 |
| |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 |
| |
32 |
| - | |
33 |
| - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 |
| |
35 | 40 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 |
| |
41 | 45 |
| |
42 | 46 |
| |
43 | 47 |
| |
44 |
| - | |
| 48 | + | |
45 | 49 |
| |
46 | 50 |
| |
47 | 51 |
| |
|
aw-client-rust/tests/test.rs
Copy file name to clipboardExpand all lines: aw-client-rust/tests/test.rs+3-3Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
63 |
| - | |
64 |
| - | |
65 | 63 |
| |
66 |
| - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
67 | 67 |
| |
68 | 68 |
| |
69 | 69 |
| |
|
+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
|
aw-sync/src/dirs.rs
Copy file name to clipboard+8-5Lines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
| 2 | + | |
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
8 |
| - | |
9 |
| - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
10 | 12 |
| |
11 |
| - | |
| 13 | + | |
12 | 14 |
| |
13 | 15 |
| |
14 | 16 |
| |
| |||
21 | 23 |
| |
22 | 24 |
| |
23 | 25 |
| |
24 |
| - | |
| 26 | + | |
25 | 27 |
| |
26 |
| - | |
| 28 | + | |
| 29 | + | |
27 | 30 |
|
+42-66Lines changed: 42 additions & 66 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
18 | 17 |
| |
19 | 18 |
| |
20 |
| - | |
| 19 | + | |
21 | 20 |
| |
22 | 21 |
| |
23 | 22 |
| |
| |||
40 | 39 |
| |
41 | 40 |
| |
42 | 41 |
| |
43 |
| - | |
| 42 | + | |
44 | 43 |
| |
45 | 44 |
| |
46 | 45 |
| |
| |||
58 | 57 |
| |
59 | 58 |
| |
60 | 59 |
| |
61 |
| - | |
62 |
| - | |
| 60 | + | |
| 61 | + | |
63 | 62 |
| |
64 | 63 |
| |
65 | 64 |
| |
| |||
73 | 72 |
| |
74 | 73 |
| |
75 | 74 |
| |
76 |
| - | |
77 |
| - | |
| 75 | + | |
| 76 | + | |
78 | 77 |
| |
79 | 78 |
| |
80 | 79 |
| |
81 |
| - | |
82 |
| - | |
| 80 | + | |
| 81 | + | |
83 | 82 |
| |
84 | 83 |
| |
85 | 84 |
| |
86 | 85 |
| |
87 |
| - | |
| 86 | + | |
88 | 87 |
| |
89 | 88 |
| |
90 | 89 |
| |
91 | 90 |
| |
92 |
| - | |
| 91 | + | |
93 | 92 |
| |
94 | 93 |
| |
95 | 94 |
| |
96 | 95 |
| |
97 | 96 |
| |
98 |
| - | |
| 97 | + | |
99 | 98 |
| |
100 | 99 |
| |
101 | 100 |
| |
102 | 101 |
| |
103 | 102 |
| |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 |
| |
105 | 113 |
| |
106 | 114 |
| |
107 | 115 |
| |
108 | 116 |
| |
109 | 117 |
| |
110 |
| - | |
111 |
| - | |
| 118 | + | |
112 | 119 |
| |
113 | 120 |
| |
114 | 121 |
| |
115 |
| - | |
116 |
| - | |
| 122 | + | |
| 123 | + | |
117 | 124 |
| |
118 |
| - | |
| 125 | + | |
119 | 126 |
| |
120 |
| - | |
| 127 | + | |
121 | 128 |
| |
122 | 129 |
| |
123 | 130 |
| |
124 | 131 |
| |
125 |
| - | |
126 |
| - | |
| 132 | + | |
127 | 133 |
| |
128 | 134 |
| |
129 | 135 |
| |
| |||
137 | 143 |
| |
138 | 144 |
| |
139 | 145 |
| |
140 |
| - | |
141 |
| - | |
| 146 | + | |
142 | 147 |
| |
143 | 148 |
| |
144 | 149 |
| |
| |||
148 | 153 |
| |
149 | 154 |
| |
150 | 155 |
| |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
| 156 | + | |
| 157 | + | |
161 | 158 |
| |
162 | 159 |
| |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 |
| - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
181 | 165 |
| |
182 |
| - | |
| 166 | + | |
183 | 167 |
| |
184 |
| - | |
185 |
| - | |
| 168 | + | |
| 169 | + | |
186 | 170 |
| |
187 |
| - | |
188 |
| - | |
| 171 | + | |
189 | 172 |
| |
190 | 173 |
| |
191 |
| - | |
| 174 | + | |
192 | 175 |
| |
193 |
| - | |
194 |
| - | |
195 |
| - | |
196 |
| - | |
197 |
| - | |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
| 176 | + | |
| 177 | + | |
202 | 178 |
| |
203 | 179 |
| |
204 |
| - | |
| 180 | + | |
205 | 181 |
| |
206 | 182 |
| |
207 | 183 |
| |
|
You can’t perform that action at this time.
0 commit comments