Improve agent prompting and classifier latency; clean up build warnings
This commit is contained in:
@@ -98,7 +98,7 @@ pub(crate) fn starts_with_shebang(path: &Path) -> bool {
|
||||
use std::io::Read;
|
||||
let mut prefix = [0u8; 2];
|
||||
match std::fs::File::open(path) {
|
||||
Ok(mut file) => file.read_exact(&mut prefix).is_ok() && prefix == [b'#', b'!'],
|
||||
Ok(mut file) => file.read_exact(&mut prefix).is_ok() && prefix == *b"#!",
|
||||
Err(_) => false,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user