Skip to content

Commit

Permalink
feat: comment BufWrite -> Box
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrogzi committed Jan 4, 2024
1 parent e55b4a5 commit fecab2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ use rayon::prelude::*;

use std::collections::HashMap;
use std::fs::File;
use std::io::{self, BufWriter, Read, Write};
use std::io::{self, Read, Write};
use std::path::PathBuf;

const SOURCE: &str = "bed2gtf";
const VERSION: &str = "1.8.0";
const VERSION: &str = "1.9.0";
const REPOSITORY: &str = "github.com/alejandrogzi/bed2gtf";

pub fn bed_reader(file: &PathBuf) -> Vec<BedRecord> {
Expand Down Expand Up @@ -184,7 +184,7 @@ pub fn get_date() -> String {
format!("{}-{}-{}", year, month, day)
}

pub fn comments(file: &mut BufWriter<File>) {
pub fn comments(file: &mut Box<dyn Write>) {
let _ = file.write_all(format!("#provider: {}\n", SOURCE).as_bytes());
let _ = file.write_all(format!("#version: {}\n", VERSION).as_bytes());
let _ = file.write_all(format!("#contact: {}\n", REPOSITORY).as_bytes());
Expand Down

0 comments on commit fecab2f

Please sign in to comment.