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:
Fintan Halpenny
2024-03-13 14:11:36 +00:00
parent 53c31312e0
commit f4a958010c
33 changed files with 92 additions and 196 deletions
@@ -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 {