History

adjustments required due to changed in `git-config` (#331)

Sebastian Thiel committed 4 years ago

Commit 41bfd3b1 parent 60af4c92 files · +2 −1Browse files

Unified · Split

2 files
  1. git-config/src/parse/state.rs +1 −0
  2. git-repository/src/config.rs +1 −1
git-config/src/parse/state.rs+1−0
@@ -53,6 +53,7 @@ impl<'a> State<'a> { · 52 unmodified lines
5353 /// Returns an error if the string provided is not a valid `git-config`.
5454 /// This generally is due to either invalid names or if there's extraneous
5555 /// data succeeding valid `git-config` data.
56+ #[allow(clippy::should_implement_trait)]
5657 pub fn from_str(input: &'a str) -> Result<State<'a>, Error<'a>> {
5758 crate::parse::nom::from_bytes(input.as_bytes())
5859 }
git-repository/src/config.rs+1−1
@@ -3,7 +3,7 @@ use crate::{bstr::BString, permission}; · 2 unmodified lines
33 #[derive(Debug, thiserror::Error)]
44 pub enum Error {
55 #[error("Could not open repository conifguration file")]
6− Open(#[from] git_config::parser::ParserOrIoError<'static>),
6+ Open(#[from] git_config::parse::ParserOrIoError<'static>),
77 #[error("Cannot handle objects formatted as {:?}", .name)]
88 UnsupportedObjectFormat { name: crate::bstr::BString },
99 #[error("The value for '{}' cannot be empty", .key)]