microsoft / rust-for-dotnet-devs

Rust for C#/.NET Developers
https://microsoft.github.io/rust-for-dotnet-devs/latest/
Other
353 stars 51 forks source link

use fs::write instead of file open and write in exception-handling #62

Open dvdsk opened 7 months ago

dvdsk commented 7 months ago

This removes the (advanced) .and_then combinator in favor of std::fs::write.

This seems more in line with the dotnet writealltext code and the and_then will probably confuse and overload the target audience.