mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-21 02:20:44 +08:00
fmt: remove .rustfmt.toml
The formatting configuration is not worth the maintenance of a nightly version. Remove it and allow the default formatting to be used instead. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
@@ -8,18 +8,12 @@ use std::convert::TryFrom;
|
||||
use minicbor::{
|
||||
decode,
|
||||
encode::{self, Write},
|
||||
Decode,
|
||||
Decoder,
|
||||
Encode,
|
||||
Encoder,
|
||||
Decode, Decoder, Encode, Encoder,
|
||||
};
|
||||
|
||||
use crate::{
|
||||
refspec::{PatternStr, PatternString},
|
||||
Namespaced,
|
||||
Qualified,
|
||||
RefStr,
|
||||
RefString,
|
||||
Namespaced, Qualified, RefStr, RefString,
|
||||
};
|
||||
|
||||
impl<'de: 'a, 'a> Decode<'de> for &'a RefStr {
|
||||
|
||||
@@ -101,6 +101,6 @@ pub fn ref_format(opts: Options, s: &str) -> Result<(), Error> {
|
||||
} else {
|
||||
Ok(())
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,12 +10,9 @@ use std::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
lit,
|
||||
name,
|
||||
lit, name,
|
||||
refspec::{PatternStr, QualifiedPattern},
|
||||
Component,
|
||||
RefStr,
|
||||
RefString,
|
||||
Component, RefStr, RefString,
|
||||
};
|
||||
|
||||
/// A fully-qualified refname.
|
||||
|
||||
@@ -14,8 +14,7 @@ use std::{
|
||||
use crate::{
|
||||
check,
|
||||
refspec::{PatternStr, PatternString},
|
||||
Namespaced,
|
||||
Qualified,
|
||||
Namespaced, Qualified,
|
||||
};
|
||||
|
||||
mod iter;
|
||||
@@ -285,7 +284,7 @@ impl RefString {
|
||||
Some(idx) => {
|
||||
self.0.truncate(idx);
|
||||
true
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ impl PatternString {
|
||||
Some(idx) => {
|
||||
self.0.truncate(idx);
|
||||
true
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,10 +9,7 @@ use ::serde::{de, Deserialize, Deserializer, Serialize, Serializer};
|
||||
|
||||
use crate::{
|
||||
refspec::{PatternStr, PatternString},
|
||||
Namespaced,
|
||||
Qualified,
|
||||
RefStr,
|
||||
RefString,
|
||||
Namespaced, Qualified, RefStr, RefString,
|
||||
};
|
||||
|
||||
impl<'de: 'a, 'a> Deserialize<'de> for &'a RefStr {
|
||||
|
||||
@@ -38,11 +38,11 @@ pub fn refname(input: TokenStream) -> TokenStream {
|
||||
}
|
||||
};
|
||||
TokenStream::from(expand)
|
||||
},
|
||||
}
|
||||
|
||||
Err(e) => {
|
||||
abort!(lit.span(), "invalid refname literal: {}", e);
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -75,20 +75,20 @@ pub fn qualified(input: TokenStream) -> TokenStream {
|
||||
};
|
||||
|
||||
TokenStream::from(expand)
|
||||
},
|
||||
}
|
||||
|
||||
None => {
|
||||
abort!(
|
||||
lit.span(),
|
||||
"refname is not of the form 'refs/<category>/<name>'"
|
||||
);
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Err(e) => {
|
||||
abort!(lit.span(), "invalid refname literal: {}", e);
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,17 +121,17 @@ pub fn component(input: TokenStream) -> TokenStream {
|
||||
};
|
||||
|
||||
TokenStream::from(expand)
|
||||
},
|
||||
}
|
||||
|
||||
None => {
|
||||
abort!(lit.span(), "component contains a '/'");
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Err(e) => {
|
||||
abort!(lit.span(), "invalid refname literal: {}", e);
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -159,10 +159,10 @@ pub fn pattern(input: TokenStream) -> TokenStream {
|
||||
}
|
||||
};
|
||||
TokenStream::from(expand)
|
||||
},
|
||||
}
|
||||
|
||||
Err(e) => {
|
||||
abort!(lit.span(), "invalid refspec pattern literal: {}", e);
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,17 +124,8 @@
|
||||
#[cfg(feature = "percent-encoding")]
|
||||
pub use git_ref_format_core::PercentEncode;
|
||||
pub use git_ref_format_core::{
|
||||
check_ref_format,
|
||||
lit,
|
||||
name::component,
|
||||
Component,
|
||||
DuplicateGlob,
|
||||
Error,
|
||||
Namespaced,
|
||||
Options,
|
||||
Qualified,
|
||||
RefStr,
|
||||
RefString,
|
||||
check_ref_format, lit, name::component, Component, DuplicateGlob, Error, Namespaced, Options,
|
||||
Qualified, RefStr, RefString,
|
||||
};
|
||||
|
||||
pub mod name {
|
||||
|
||||
Reference in New Issue
Block a user