diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-05-05 19:28:57 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-05-05 19:28:57 +0300 |
commit | 6498b2eecb21ad87069be8f501f35374745106d9 (patch) | |
tree | 18af0fcdb186609452825adb3155badcd4aaa013 /subplot-build/src/lib.rs | |
parent | 12059fcb1ce8237e5587773043cd442e036531c2 (diff) | |
download | subplot-6498b2eecb21ad87069be8f501f35374745106d9.tar.gz |
refactor: drop the subplot::Result type alias
Replace subplot::Result<T> with Result<T, SubplotError>. I find this
now to be clearer, as I don't need to remind myself which Result is
being used where. This should not be a breaking change.
Sponsored-by: author
Diffstat (limited to 'subplot-build/src/lib.rs')
-rw-r--r-- | subplot-build/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subplot-build/src/lib.rs b/subplot-build/src/lib.rs index 28558e8..f8ed074 100644 --- a/subplot-build/src/lib.rs +++ b/subplot-build/src/lib.rs @@ -7,7 +7,7 @@ use std::env::var_os; use std::fmt::Debug; use std::path::{Path, PathBuf}; -use subplot::{get_basedir_from, Result}; +use subplot::{get_basedir_from, SubplotError}; use tracing::{event, instrument, span, Level}; /// Generate code for one document, inside `build.rs`. @@ -31,7 +31,7 @@ use tracing::{event, instrument, span, Level}; /// # dir.close().unwrap() /// ``` #[instrument(level = "trace")] -pub fn codegen<P>(filename: P) -> Result<()> +pub fn codegen<P>(filename: P) -> Result<(), SubplotError> where P: AsRef<Path> + Debug, { |