Ignore ENOBUFS when writing to VM's socket (#18)

* Ignore ENOBUFS when writing to VM's socket

* Hint the into() target type to the compiler to fix the build error

* Fix Clippy warnings
This commit is contained in:
Nikolay Edigaryev
2022-12-15 00:15:19 +04:00
committed by GitHub
parent 4ab3cd7e5c
commit 59cd9098e0
3 changed files with 24 additions and 7 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ fn main() -> ExitCode {
// Enrich future events with Cirrus CI-specific tags
if let Ok(tags) = env::var("CIRRUS_SENTRY_TAGS") {
sentry::configure_scope(|scope| {
for (key, value) in tags.split(",").map(|tag| tag.split_once("=")).flatten() {
for (key, value) in tags.split(',').filter_map(|tag| tag.split_once('=')) {
scope.set_tag(key, value);
}
});