From 759eba0a08ef80f958e671e822ad02e2b5409946 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 30 Sep 2021 19:38:50 +0200 Subject: Fix clippy lints --- compiler/rustc_llvm/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/rustc_llvm/src/lib.rs') diff --git a/compiler/rustc_llvm/src/lib.rs b/compiler/rustc_llvm/src/lib.rs index 2f199989d3b..6493bd91ca2 100644 --- a/compiler/rustc_llvm/src/lib.rs +++ b/compiler/rustc_llvm/src/lib.rs @@ -17,6 +17,10 @@ impl RustString { pub fn len(&self) -> usize { self.bytes.borrow().len() } + + pub fn is_empty(&self) -> bool { + self.bytes.borrow().is_empty() + } } /// Appending to a Rust string -- used by RawRustStringOstream. -- cgit 1.4.1-3-g733a5