Rename from string to from slice and fuck utf8

This commit is contained in:
2018-05-23 16:25:21 +02:00
parent 1dcea9c05f
commit 4a9e2e7d20
3 changed files with 23 additions and 4 deletions

View File

@@ -21,10 +21,10 @@ impl IJVMReader {
})
}
pub fn new_from_string(source: String) -> IJVMReader {
pub fn new_from_slice(source: &[u8]) -> IJVMReader {
IJVMReader {
pointer: 0,
source: source.into_bytes(),
source: source.to_vec(),
}
}
}