From 896b7ed228723096ca228fab41a97361d6d6e8f6 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Mon, 11 Mar 2024 12:55:33 -0400 Subject: [PATCH] Change a function name --- polbin/src/file.rs | 2 +- polbin/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polbin/src/file.rs b/polbin/src/file.rs index d7cdfe5b..761b402d 100644 --- a/polbin/src/file.rs +++ b/polbin/src/file.rs @@ -25,7 +25,7 @@ fn get_prefix(data: &[u8], len: usize) -> (&[u8], &[u8]) { (&data[0..len], &data[len..]) } -pub fn load(data: &[u8]) -> flatgfa::FlatGFA { +pub fn view(data: &[u8]) -> flatgfa::FlatGFA { // Table of contents. let toc = TOC::ref_from_prefix(data).unwrap(); let rest = &data[std::mem::size_of::()..]; diff --git a/polbin/src/main.rs b/polbin/src/main.rs index 8c9c79dc..c4428348 100644 --- a/polbin/src/main.rs +++ b/polbin/src/main.rs @@ -13,7 +13,7 @@ fn main() { // Read either GFA text from stdin or a binary file from the first argument. if let Some(name) = std::env::args().nth(1) { let mmap = map_file(&name); - let gfa = file::load(&mmap); + let gfa = file::view(&mmap); print::print(&gfa); } else { let stdin = std::io::stdin();