diff options
author | René Kijewski <Kijewski@users.noreply.github.com> | 2022-06-15 22:57:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-15 22:57:18 +0200 |
commit | d4c13f5b4367fd3ca57fc14fdcf1d01694060c7a (patch) | |
tree | a5843b18e88a9690a8f95179e99925071b4445c1 /askama_derive/src/config.rs | |
parent | 55d292ca22320a36589e1afdee1c650d5da3540d (diff) | |
download | askama-d4c13f5b4367fd3ca57fc14fdcf1d01694060c7a.tar.gz askama-d4c13f5b4367fd3ca57fc14fdcf1d01694060c7a.tar.bz2 askama-d4c13f5b4367fd3ca57fc14fdcf1d01694060c7a.zip |
Replace `&Option<Box<T>>` with `Option<&T>` (#696)
No need to work on references to references.
Diffstat (limited to '')
-rw-r--r-- | askama_derive/src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/askama_derive/src/config.rs b/askama_derive/src/config.rs index 01f81a2..7764c70 100644 --- a/askama_derive/src/config.rs +++ b/askama_derive/src/config.rs @@ -249,7 +249,7 @@ struct RawEscaper<'a> { } pub(crate) fn read_config_file( - config_path: &Option<String>, + config_path: Option<&str>, ) -> std::result::Result<String, CompileError> { let root = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()); let filename = match config_path { |