How frequently do you edit AI generated code
The Rust Programming Language Forum
How frequently do you edit AI generated code
I use AI for writing Rust code over an year. It works like a charm, but recently I started sligtly modify the code. Do you think it's reasonable? For example: use std::os::windows::io::AsRawHandle; @@ -41,7 +42,7 @@ const FILE_SHARE_DELETE: u32 = 4; fn is_directory(path: &str) -> bool { Path::new(path).is_dir() } -fn open_directory(path: &str) -> std::fs::File { +fn open_directory(path: &str) -> io::Result<std::fs::File> { let wide: Vec<u16> = OsStr::new(path) .encode_wide...
0 comments
No comments yet.