build: add deny(unreachable_pub)

Signed-off-by: Charlotte Meyer <dev@buffet.sh>
This commit is contained in:
buffet 2022-11-07 12:20:21 +00:00
parent fc3d52fe48
commit a990418704
4 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#![deny(unreachable_pub)]
use darling::FromMeta;
use proc_macro::TokenStream;
use proc_macro2::Span;

View file

@ -1,3 +1,5 @@
#![deny(unreachable_pub)]
use std::io::{self, Write};
pub fn readline(prompt: &str) -> Result<String, io::Error> {

View file

@ -1,3 +1,5 @@
#![deny(unreachable_pub)]
//! Parser for the oyster shell, the grammar is outlined below, `extras` are allowed everywhere,
//! *except* inside `word`.
//! `_` means that the rule does not produce an explicit node.

View file

@ -1,3 +1,5 @@
#![deny(unreachable_pub)]
//! The runtime for executing oyster programs.
//! Panics when an invalid ast gets passed.