Deserializer's input field already contains a Box<dyn Read> so it is already not Send nor Sync regardless of the things touched here, and nobody has complained so far.
We can't easily switch to Box<dyn Read + Send + Sync> because serde_yaml::Deserializer::from_reader doesn't have those bounds, so I'm not sure what we would do if someone really needs this on multiple threads.
Deserializer
'sinput
field already contains aBox<dyn Read>
so it is already notSend
norSync
regardless of the things touched here, and nobody has complained so far.We can't easily switch to
Box<dyn Read + Send + Sync>
becauseserde_yaml::Deserializer::from_reader
doesn't have those bounds, so I'm not sure what we would do if someone really needs this on multiple threads.