Skip to content

Commit e4e3ec1

Browse files
committed
fix: encoded_rules.yml's update error
1 parent 7f2e557 commit e4e3ec1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ impl App {
608608
match get(url).call() {
609609
Ok(mut res) => {
610610
let mut dst = File::create(Path::new("./encoded_rules.yml")).unwrap();
611-
dst.write_all(res.body_mut().read_to_string().unwrap().as_bytes())
611+
dst.write_all(res.body_mut().read_to_vec().unwrap().as_bytes())
612612
.unwrap();
613613
write_color_buffer(
614614
&BufferWriter::stdout(ColorChoice::Always),

0 commit comments

Comments
 (0)